Timer does not reset

Hello

IK's got a game with a timer. When the game is over, you can play it again and the SWF file is loaded again. Everything is set to zero except the timer. A new start, but the old one is on the bottom.

The timer is the only code that is on the timeline... What is the problem here?

I can not get the timer works in my file...

This is the code on the timeline:


var: timer = new Timer (60, 1000);
timer.addEventListener (TimerEvent.TIMER, count);
timer.addEventListener (TimerEvent.TIMER_COMPLETE, timerDone);
Timer.Start ();
function countdown(e:Event)
{
myText.text = String(1000-timer.currentCount);
}
function timerDone(e:TimerEvent):void {}
gotoAndStop (3);
for (var i: int = 0; i < _cards.length; i ++) {}
removeChild (_cards [i]);
}
}

Anyone an idea what I am doing wrong?

TNX

I don't know what you mean by "the old man is in the background? Do you mean that you get two instance of your text field on the stage?

Instead of creating the timer each time a user reboots - create your instance of timer, then manage to help

Timer.Start

So, first image initialize your timer & any other code - the second image, launch your clock. Your 3rd frame looks like it manages the end of the game? Then send it to your 2nd frame to start the game.

Tags: Adobe Animate

Similar Questions

  • Alarm and timer does not iOS 6 s 10

    Help! After having downloaded the iOS 10, my alarms and timer does not work. During the years that I have had 4 different alarms set - 2 in the morning and 2 the afternoon. This morning the alarm at the top of my phone icon was there, so I assumed that everything was settled as it is normally. I was wrong. My 05:30 alarm has not extinguished the next morning. The next day, I could turn it back on, but when I went to all other lights it shuts down another. It would only be standing. So, I opted for the alarm from 05:30 again. With my phone not allowing an alarm to be defined at the time, now I'm going to put it but it randomly turns off its own. I'm FED UP with it! I used my phone as alarm clock years but had to go out and by a real wake-up call to make sure I wake up in the morning. Not only that, but my timer does not work either. What is someone is having these problems?

    I did have the problem where one turn the other goes out, but since I got my iPhone with iOS 10 7 or my alarm not timers turn off. I watched the ticks to zero with no sound, no matter what I do. There is no problem with volume control and I did it with the key "secret" on and outside. I am at a total loss.

  • Tap to talk time does not work on my watch

    Hey guys!

    Tap to talk time does not work on my watch.

    I know that his works only with Mickey/minnie.

    the watch is after unpari/pair, the "tap to speek" function is enabled (on the iphone and the watch)

    both are updated to the latest ios/watch OS and still...

    any ideas...?

    Thank you!

    Return on investment

    Hi King

    I suggest to wait until a few hours, leaving the face of Mickey or Minnie Mouse selected on your watch.

    My own experience (tested on two watches) is that the feature became available after waiting, without rebooting or unpairing / rematching of the watch. In one case, it took somewhere 3-5 hours, but you can see that the function starts working sooner than that.

    It can help to first turn the tap to set the time to stop, pause for a few moments and then turn it back on again.

  • EL Capitan automatic date time does not work

    People

    I use an El Capitan 10.11.5 MacBook Air version.

    I noticed that the data and time does not work even though it was set to auto to time.asia.apple.com.

    I ran these commands on a terminal

    $ping-c 5 time.asia.apple.com

    Ping: impossible to solve the time.asia.apple.com: Unknown host

    $ping-c 5 time.nist.gov

    PING ntp1.glb.nist.gov (64.113.32.5): 56 bytes

    64 bytes from 64.113.32.5: icmp_seq = 0 ttl = time 44 = 386,629 ms

    64 bytes from 64.113.32.5: icmp_seq = 1 ttl = time 44 = 307,532 ms

    tell me ping works but not for the server ntp - time.asia.apple.com

    $nslookup time.asia.apple.com

    Server: 192.168.1.254 address: 192.168.1.254 #53

    Non-authoritative answer: time.asia.apple.com canonical name = time - ios.g.aaplimg.com.

    time - ios.g.aaplimg.com canonical name = site time.apple.com.

    Site Time.Apple.com canonical name = time - osx.g.aaplimg.com

    $cat /etc/ntp.conf

    Server time.asia.apple.com.

    $ ntpq Pei

    No returned ID association

    Please, back up all data.

    Open the window of network preferences, if necessary, by clicking on the padlock icon in the lower left corner and entering your password. Cllck advanced, open the DNS tab and change the addresses of the servers as follows:

    8.8.8.8

    8.8.4.4

    It's Google DNS. Click OK, and then apply.

    In Safari, select

    ▹ Safari preferences... ▹ Confidentiality ▹ Remove All site data

    and confirm. If you use another browser, clear the cache memory. Test. Any difference?

    Notes:

    1. If you lose Internet access after the above change is made to your network settings, remove the Google servers in the network preferences pane, then click on the TCP/IP tab, then click on renew the DHCP lease. That should restore the original DNS settings; otherwise restore them yourself. Remember that you must click on apply so that the changes take effect.

    2. I do not use Google DNS myself, but I tested it, and I do not recommend it or any other provider DNS; the addresses of the servers are only available for testing purposes. There may be privacy and technical issues involved in the use of this service, that you should personally study before deciding whether to retain the settings. Other public DNS services exist.

  • Face time does not work since this morning if my wifi connection is fine and parameters also very well.

    IPhone 6, 114 GB, GB 72.6 available capacity. iOS 9.3.1

    Face time does not work since this morning. Connection Wi - Fi works very well

    Mamimisra wrote:

    IPhone 6, 114 GB, GB 72.6 available capacity. iOS 9.3.1

    Face time does not work since this morning. Connection Wi - Fi works very well

    https://support.Apple.com/en-us/HT204168

  • The date and time does not work.

    I have an iphone 5 c.

    The date and time does not work. This is the second time.  The first time was about 3 to 4 months again and now again after upgrade to iOs9.3.1.

    Even after trying to change it manually, time slows down or stops.

    Everyone has problems with their date and time?

    • Try a forced reboot: hold down the House and on the buttons until the unit turns off. Ignore the cursor off if it appears. Once completed, if it does not start on it own, turn off power with the key On. In some cases, it also contributes to double click the Home button and close all applications before restarting.
    • Restore factory settings (no backup)
    • Make an appointment at your local Apple store to have it checked.
  • "Show my windows and tabs from last time ' does not work in version 3.6.8

    I select "show my windows and tabs from last time ' on the Options window - Panel general"when firefox starts", but it opens as my home page every time I start firefox.

    I tried this on two different computers. Both of them have the same problem.

    It worked fine in previous versions, but it does not work in version 3.6.8.

    If you use delete, search and download Firefox browsing history in Firefox 3.5 and later versions to clear the 'browsing history' the closing of Firefox then in restaurant tabs in the last session ("Save and exit" or "show my windows and tabs from last time ') does not work.

  • WIndows 7 sleep timer does not

    Recently, I reformatted my HP Pavilion p6580t and installed Windows 7 Ultimate on it. For some reason, the timer does not work. He won't be sleeping the monitor or computer. If I put it to sleep manually it works, but will not be out of the timer. The only thing I've updated was the graphics driver SP59747 and install the network key usb wireless TP Link on the computer. After installation, the timer does not work. It doesn't seem to work before installing these 2 points. Guys do you have an idea what is happening? Any help would be greatly appreciated.

    Thank you, copy and paste in. Looks like I missed some updates (I have them all thinking). Once I downloaded all, it seems to work now.

  • Stop button does not reset LabView?

    Hello

    I did this VI (attached to this message), but whenever I have to use "continuous run", it seems that this gives the wrong result in the façade. However, it gives correct results when I add a random check on the block diagram and delete it immediately (technically speaking, nothing has changed at the blockdiagram) and after that, press 'run continuously.

    If the button "Cancel execution", which I use to stop the system does not reset my system? How to reset the system until I use it?

    In addition, below I watch 4 similar parts, if I use 25 of these parts in the same file, does it take much calculation effort or is it no big deal for LabView (on a basic computer?)

    Thanks in advance!

    Just do a simple state machine

  • Family timer does not work for Windows 8

    I can view the activity report and check the websites visited, but everything doesn't seem to work properly.  The time settings and the curfew does not work and when I view the reports using pc is far from what is used.

    Hello

    I would like to you can check this post about delays on parental control. Refer to the post of Eugene_R.

    Time does not

    Moreover, in a resolution of the initial problem, I suggest that reconfigure you the account user. Here's how:

    In Windows 8, you can use accounts of Microsoft as a user. You just link the Microsoft e-mail account to the new standard user. Follow these steps:

    Note: Make sure that you have an internet connection to create a user with a Microsoft account.

    1. press Windows key on your keyboard to access the applications screen.

    2. tap create an account (you will be redirected to search application screen automatically).

    3. click on settings (second option with the gear icon).

    4. click on create an account on the selection to the left pane. (You may be prompted for access admin select an admin user, and then enter the administrator password).

    5. in the account management window, click Add a user account.

    6. you will be prompted to add a user, enter the Microsoft account email address in the text box then click on Next.

    7. check This is a child account? Turn on family safety for PC usage reports.

    8. click on Finish.

    After you create the child account, you can then go to the Family Safety website, log in using the parent account and then manage restrictions and control of your child options.

    Second: In case you want your child free of any restriction which actually an adult account, you will need to just make sure that he or she is not a member of the safety of your family to check on the Family Safety website. To remove a child, go to manage the list of the members of the family. Select the account you want to delete by checking the box on the right, click on remove, then confirm by clicking on remove again.

    In case you have problems after deleting the account as a child, please update the personal data of the account by connecting to https://account.live.com/summarypage.aspx.

    Note: If you are currently logged in using your account, you must open a session and re-enter your child's account.

    Thank you.

  • Time does not properly.

    The allocation of time does not work. The curfew works only in increments of 1 hour. The half hour makes no difference. We have 4 laptops with Win7 on them.

    Ouer & Eugene Hi,

    Please make sure that the correct windows user name is labeled as handled in http://fss.live.com/. Also to ensure that the time on the computer is time settings that you have configured in http://fss.live.com/.

    You can also check if Windows Live family safety is defined as control of your child's computer provider. To check, you can follow these steps:
    1. click on the Start button
    2. go to the Control Panel, then select Panel of all elements
    3. choose Parental control
    4. a list of Windows users who are on this system will be shown under additional scrutiny, the drop-down list of choose a provider of worth Windows Live Family Safety.
    5 wait for the system to update, and then try if the time restriction will be applied.

    NOTE: You must log in as an administrator user to perform the above steps.

    Another step that we recommend is to uninstall and reinstall Windows Live parental controls on the computer. Please be guided by the following steps to avoid conflicts:
    1. log in to http://fss.live.com , using your main email address.
    2. in virtue your computers, click remove computers from this list.
    3. next to the name of the computer that you want to remove, select Remove, and then click Save.
    4. return to the home page. To remove a member of the family, simply click remove a member of the family.
    5. check the Remove check box. And then click Remove.
    6. uninstall the client Windows Live Family Safety.
    a. in Windows 7, click Start, select Control Panel
    b. under programs, click uninstall a program
    c. Select Windows Live Essentials, and then click Uninstall/Change
    d. click remove one or more Windows Live program
    e. Select Windows Live Messenger in the list, and then click Uninstall of
    7 re-install Windows Live Family Safety from this link
    8 set deadlines, then check if the problem has been resolved.

    I know that these steps are long and will take time to do however these can isolate the cause of the problem. In addition, there is a recent change in the functionality of delays in parental control, please read the thread in the link below:

    Time does not

    Thank you
    Gerard G.

  • Time does not automatically refresh in computer hp laptop g62-457dx

    I have a hp laptop g62-457dx. recently, I have faced this problem. his time does not update. When I connect online and time updated, then it works. but when I turn off my computer, laptop and portable lights after one or two hours later's time does not update.

    How can I solve this problem?

    Original title: time problem

    CA

    It's mostl probably the CMOS battery.  This battery keeps track of the time when the computer is turned off.  It is not too difficult to replace and is less than $20

  • Percentage of system restore does not reset to zero

    I just built a PC W-7 with a SSD system drive and a hard drive for data.  At the end I was tired and selected the wrong drive (the hard drive) in 'System Protection '.  When I noticed my error, I set the SSD system ("restore system settings AND previous versions of files") then returned to the hard drive and set it to OFF ("turn off system protection").  However, I was surprised to discover that the cursor would not be travelling to 0% and stopped at 1%.  Is it possible to force it to 0%?

    Hello

    I tried to repro the issue and found that on each machine, once a system drive has been defined for the restoration of the system, the percentage of system restore minimum (use of the disc) does not reset to zero, even after the removal of all old restore points.

    The reason that I found is that once a system restore is enabled on a system drive, the system volume information folder create some system files that are hidden, which takes a little bit of space in the record, leading to 1% of the disk space.  These files can only be changed or deleted after formatting the disk or change the partition of the system drive to a normal drive.

    My research tells me that there is no way in which we could reset the slide to zero percent, minimum 1%.

  • Set the style to null does not reset the attributes of police - Bug or feature?

    I call setStyle ("police - fx - weight:" BOLD "") with a label - the label text is in bold.
    Then I call setStyle (null) with the same label - now awaits the etiquette police returned to the definition of the CSS.

    But: the label does not indicate a normal font now - it's always "BOLD".
    I have to explicitly call setStyle ("police - fx - weight: normal") in order to bring it back to the normal font.

    Is this a bug or a feature?
    If it is a bug, so I'll post a message-Jira, but I'm still not 100% sure...

    My FX version is 2.2.

    Thanks + regards!
    Björn



    Code examples:
    package ztest;
    
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.SceneBuilder;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    
    public class Test_62_FontStyle 
        extends Application
    {
        public static void main(String[] args)
        {
            launch(args);
        }
    
        boolean m_bold = false;
        VBox m_vb = new VBox();
        Label m_la = new Label("Some text to be styled.");
        Button m_bu = new Button("Change");
        
        @Override
        public void start(Stage primaryStage)
        {
            final Scene scene = SceneBuilder.create()
                 .root
                 (
                      m_vb
                 )
                 .build();
            
            m_vb.getChildren().add(m_la);
            m_vb.getChildren().add(m_bu);
            
            m_bu.addEventHandler(ActionEvent.ACTION,new EventHandler<ActionEvent>()
            {
                @Override
                public void handle(ActionEvent paramT)
                {
                    m_bold = !m_bold;
                    if (m_bold == true)
                        m_la.setStyle("-fx-font-weight: bold");
                    else
                        m_la.setStyle(null); // does not reset font!
    //                    m_la.setStyle("-fx-font-weight: normal"); // this works fine...
                }
            });
            
            primaryStage.setScene(scene);
            primaryStage.show();
        }
        
    }

    This is a known bug: setStyle (null) and setStyle("") does not cancel a previous call setStyle()

    https://JavaFX-JIRA.Kenai.com/browse/RT-25002

  • Why my "display windows and tabs from last time ' does not work?

    Hi all

    I used to have my settings set to "display windows and tabs from last time." For some reason, it does not. Whenever I close my tabs, Firefox warns you me I close many tabs, and when I reopen it Firefox, I only get my home page.

    In the menu options, I put 'windows and tabs from last time' options, and in private life, I have "Firefox will remember history", so I do not think it is related to my settings.

    I saw a thread on 'browser.sessionstore.enabled' must be true about: config, but I don't have even a name preference that says "browser.sessionstore.enabled. Maybe that's the problem? If so, I have NO IDEA how to fix this. I only am not at all computer savvy.

    If someone could find a solution to this very annoying problem, I would be very grateful. If it takes a lot of work of programming/techno, please be VERY descriptive (pretend I'm a 5 year old child in giving directions).

    Thank you!

    Browser.sessionstore.Enabled is no longer used, worry not if you can't find it.

    In case you use "clear history of Firefox closing:

    • do not erase browsing history – which will prevent the restoration of the work session.

    Note that compensation "Preferences of Site" clears all exceptions for cookies, images, pop-up windows, installation of software, passwords, and other specific data from Web site.

    Deletion of cookies will delete all specified (selected) cookies, including cookies with an exception allowing you want to keep.

    You can check the prefs of . browser.sessionstore * including browser.sessionstore.resume_from_crash on the topic: config page and reset the browser.sessionstore prefs that are correct (in bold) user via the context menu in the default value to make sure that the Session Restore is enabled and functional.

Maybe you are looking for