Timer to reset to the main report

I built an application in Flash Catalyst I publish as an Air application for a desktop computer. I'm trying to get the application to return to the main menu (State1) when 5 minutes at the top of any State. I also need the timer to zero if I moved States. The application is an information booth and so, once a person has stopped using and left say the state3, I want to return to State1 (menu) for the next person to use. I know I can't do that in catalyst, so I'm trying to do in the generator. However, I have no experience in writing code. I searched but help Forums, but I don't really have enough understanding to make something similar and rewrite it for my use. If someone could give some me help it would be great. 

Thank you

Well firstly you should not use const

State: String const = currentState;

const means that the variable will not change, but you put in it to a variable, that could change. Instead, it should just be set like a normal variable as follows,

var state:String = currentState;

But since you simply set the variable equal to the value of currentState State we can rather just delete this line and use the currentState variable when we check to see if we are on the State of "Menu." So, here is the modified code.

protected function timerCheck(event:TimerEvent):void
{
     timePassed = ((getTimer() - startTime) / 1000) / 60;

     if (timePassed >= timeout)
     {
          resetTimer(); //Reset the timer back to 0

          if (currentState != 'Menu') //If not showing the main state
          {
               currentState='Menu'; //Go back to the main state of your application
          }
     }
}

Tags: Flash Builder

Similar Questions

  • Return to the main report

    He is an idiot, but I'm looking for a quick fix.
    If I submit a form and when I do I'll go to an another viewstate
    which States that the form is sent.
    I have a button on that report to the click event, i.e.
    < mx:FormItem id = "formitem2" >
    < mx:Button x = "10" y = "223" label = "Send" click = "muFuctionCall (event), currentState ="subject"" id = "mySubmitButton" / > "
    < / mx:FormItem >

    I want to go back to the main report but hadou even when text in the fields to the main form States.
    What should I do to get the fields of the FOEN cleared away, it looks like the State of origin.

    Thank you
    Gene

    It's what's done.
    private void resetFields(event:MouseEvent):void {}
    Subject.Text = ";
    Body.Text = ";
    }


    fontFamily = "Times New Roman" fontSize = "16" color = "#808000" themeColor = "#808080" cornerRadius = "13" borderColor = "#808040" id = "panel1" >


    -->






    Thanks for the info.
    I feel if.
    I just show you how powerful action script is.
    Thanks dude.

  • Using c# to check if the main report contains a sub report in the Crystal Reports Viewer

    Hello

    I currently have a web form application, which displays a crystal report already created using the crystal reports Viewer. In this report, the format is a few pages of the main report, followed by a few pages of the report of void. However, when the user first opens the application, all they see is the main report. Unless they click on the subpage of report the report viewer do not recognize as one of void, even if the user is on the page of report of void.

    I was wondering if there are ways to use the c# code to check if some pages of the main report contains a report without user sup a goes through each page of the report?

    Thanks a lot for your help!

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • Add delta to the main report &amp; Reporting solution.

    Hello

    We have through hundreds of cases of LDAP, doing many different things, and also over and repeatedly, we need to provide reports of these LDAP Instances. We have a table of scripts to generate the required reports. However, these reports put a significant amount of the load on the DS, and we note that increase in requests for these reports.

    I throw out there, if someone could suggest me a good way to serve this report? Any other LDAP effective reporting solution.

    Also, I have a questions of LDAP East side, let's say we're dumping all the report of the Organization on Friday. What is the best possible way add the daily 'delta' in order to eliminate the need to run the report every day. Thus, for example, I run a key report Friday, then we Sam, if I could get 'delta' of what has changed since the weekly report, and if there is a way to add the delta to the weekly main report. This way I don't have to run the 'main' report every day. We have requirements, where the consumer wants daily reports.

    I would be grateful any person providing any input to help me in this.

    Thank you, John.

    If I understand you correctly, you might be able to use the tools ldifsearch and ldif-diff of the OpenDS project for this, assuming you have LDIFs to work with in the first place.

  • How to submit a concurrent application of the Scout report.

    I would like to know if anyone has tried submitting a concurrent application of discoverer report? _

    This is no dumb question, but our team here finally decided with a solution to our long-term issues with little discoverer pending report. To go further, we would like to know, how to submit a concurrent request of the discoverer report?

    We are looking for the appellant a package from the admin of Disco passing parameters to the disco to 6i report.

    All help us in this matter is highly appreciated.

    Kindly help us in the same!

    Thank you
    Arun

    Hello

    If you need a table before running a report there are an other few mechanisms that you can use. You can use a trigger to session, the political function or table VPD to execute some PL/SQL, before the main report is run.

    You should try to use a mechanism that will allow the report to be run at the same time by two users. Difficulty using a concurrent request is that the request is not related to the session of the user, so that if two users run the report, or the same user runs the report, once again, you will get two concurrent requests running. Your report will also have to wait for the completion of the concurrent request.

    Ideally, you need to use a temporary table and PL/SQL that runs in the session to fill the table so that when the session ends you don't need to reset the table. Also users can run the report at the same time because the contents of the temporary table is visible only by the session that inserted records.

    Rod West

  • Filter delete automatically the interactive report

    Hello world

    We are seeing the question in the filter APEX. I applied the action filter-> filter. the filter is applied as expected. then we are navigate current page to another new page. When we return to the old filter page, we are not able to get the filter.

    For example: we have the "amount" column I applied a quantity of filter > filter 0 on page 1, then page 2 accessing we. When we return to page 1 we are not able to find the amount > 0 filter

    Let me know how to solve this problem.

    Kind regards

    Sushant

    Hi LnTInfotech,

    LnTInfotech wrote:

    Hi Sunil,

    Thanks for your information, but in my case, we do not save the default (primary) report. We have to got to page 1 to page 2 with any filter and return back to page 1 need to show the same filter.

    Kind regards

    Sushant

    Are you compensation/reactivate the interactive link (button, breadcrumb) report? Reference: a link to the interactive reports

    As clearing (CIR) /resetting (IRB) interactive report leads to clear the filters applied to the interactive report in the session active.

    Note: Filters / other attributes of the action menu applied to the interactive report are specific session, user may choose to save it as a saved report interactive and developer can choose to save as the main report.

    For more information about interactive reports see the Oracle APEX documentation and tutorials available on Oracle Learning Library like this:

    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/DB/Apex/R40/apexirr/apexirradv/apexirradv_ll.htm

    I hope this helps!

    Kind regards

    Kiran

  • report is different than the original report after export/import use icommand

    as topic,.
    I export a report and import it into a different environment, but the report is different, I have config drill anywhere in a bar chart, but he lost...
    All the tips you all?

    What version of BAM do you use to export and which version to import?
    Also, I'm sure you import report drilled through first and then the main report, right?

  • How can I include results of a subsequence, which takes place in a new thread in the test report from the main sequence

    Hello!

    I have ", working with the Version 4.2.1 of TestStand. I have a main sequence, which sous-séquences of different calkls. All these steps are reported correctly. One of the subsequences works like "new thread". How can I include his results in the common test report of the main sequence?

    I have variable markes of the subsequence as is required for the test report (it works OK if it's not a new thread). If the digital test, which is performed in this subsequence is correct, I get no results at all. If the digital test could not get a "message in red" who whithout having failed to test any reference to step somewhere in the report of the main sequence or values of vaiables that were not correct.

    I tried an option 'on the fly' in the Configuration of the report, but n ' got no useful result. What should I do?

    Best regards

    Hello Pericles,

    You can use a queue time for the results of the wire once it ends. Place a waiting time after the call to the thread in your MainSequence at the location where you want the results to add to the report (compared to other results). In the waiting step Setup tab, select wait: Thread the threaded sequence, and then select call to specify sequence call the radio button. You can also use an object reference if you need results if poster somewhere where elsewhere - you would just add an object reference to the appeal of sequence threaded in its thread settings dialog box.

    I hope this helps.

    -Jack

  • BlackBerry smartphones after restart (reset) his shot on the main screen

    When I was restarts my balckberry torch 9860 after reset the screen hit his main keys are also not network signal and the work goes to off .i have done many times restart by baterry deleting the process, but it still hang on the main screen please help me as soon as possible...

    sachin09 wrote:
    How do I on my device in safe mode?

    I already posted this article Knowledge Base, always check the KB17877

    If possible to start your device in Mode safe to remove this application, it will solve your problem.

    Or if you are unable to start Safe Mode and then follow this Knowledge Base to reload the operating system:

    KB10144 : How to force detect the BlackBerry smartphone using the Application Loader

     

    But please note that this method will erase your data from the device. If you have a previous backup or using BlackBerry Protect you can restore your backups.

  • The main events in AWR report

    Hi all

    11.2.0.1

    AIX 6.1

    I had this big event awr report.

    Can you help me how to interpret this please. Or what is the value of looking here?  Thank you very much

    The main events in AWR report

    I have

    n

    Snap              s       Snap                                                                                                    A

    Snap the t hard event time start Avgwt DB A

    Time event ID # (m) expected grade (s) (ms) % S waiting class

    ------ --------------- --- ---------- ---------------------------------------- ----- -------------- -------------- -------- ------- ------ ---------------

    13902 13/09/16 09:00 1 60.05 os thread start 1 140,00 11.08 79,11 56 0,0 Concurrency

    13902 13/09/16 09:00 60.05 1 CPU time 2 0.00 0.00 9,45 48 0.0 CPU

    13902 13/09/16 09:00 1 60.05 log file parallel write 3 1506.00 1.84 1.22 9 0.0 IO system

    13902 13/09/16 09:00 1 60.05 control file parallel write 4 1291.00 1.41 1.09 7 0.0 IO system

    13902 13/09/16 09:00 1 log file sync 60.05 5 721.00 1.03 1.43 commit 5 0.0

    13903 13/09/16 10:00 1 60.05 os thread start 1 138.00 10.36 75,10 47 0.0 Concurrency

    13903 13/09/16 CPU 60.05 1 10:00 hour 2 0.00 0.00 10,28 47 0.0 CPU

    13903 13/09/16 10:00 1 60.05 log file parallel write 3 1575.00 1.73 1.10 8 0.0 IO system

    13903 13/09/16 10:00 1 60.05 direct path read 3 486.00 1.73 3.56 8 0.0 IO user

    13903 13/09/16 10:00 1 60.05 control file parallel write 4 1285.00 1.51 1.17 7 0.0 IO system

    13903 13/09/16 10:00 1 log file sync 60.05 5 823.00 1.08 1.32 commit 5 0.0

    13904 13/09/16 11:00 60.05 1 CPU time 1 0.00 17,06 0.00 CPU 32 0.0

    13904 13/09/16 11:00 1 60.05 os thread start 2 145.00 10,65 73.46 20 0.0 Concurrency

    Thanks, I just tell the users, there is no problem in the comic book, and the stats is normal and no suspiscious activity and that the problem is in the minds of users only.

  • every time I erase content and settings on my iphone 6 after reset at the start of my phone and after crossing the screen as Hello &gt; select language &gt; Connect wifi &gt; my iphone doesnot ask me activation lock even if my unit is also found on

    every time I erase content and settings on my iphone 6 after reset at the start of my phone and after crossing the screen as Hello > select language > wifi connection > my iphone doesnot ask me lock activation that says that your iphone is connected with the old apple ID, please enter the id and password

    I always reset on find my optional equipment please tell me how to activate locking activation so that whenever I have factory reset my phone with finding my camera so my phone always ask an old apple and password

    I do not understand your question, but let me go with what I believe. Looks like you entered in iCloud and erased all the content and settings on the iPhone, and once you go by assigning back up again, you do not see something that you expect to see, for example, a request for an Apple ID. When you go through the installation process to select the language, etc., it must, at some point, ask you to identify yourself with your Apple ID. are you not see this?

    It would be better if you try to describe exactly what you do again. Also, without the help of any sign of punctuation, it is difficult to track everything you ask. Try providing the steps of what you do, and then what you see when you get to the point that you believe that something is going wrong. You mention both an old and new Apple ID, which is rather confusing.

  • 12 Firefox on OS Lion does not obtain the crash report on a second account on the past. On the main account (admin) it works very well and also on a third test account.

    12 Firefox does not get beyond the crash report. This is a second account (standard). However, it works very well on a third party, as well as on the main one admin account. I reinstalled Firefox, disc repaired permissions and so on, but nothing helped. For the second account .plist file could be damaged? I can't remove it because of permissions so cannot test this. Please notify.

    Try to repair disk permissions:

  • I have problems with my computer with the time remaining after I reset the clock and made sure it was on the correct time zone and summer time has been check the battery has also been replaced

    and it will not keep the exact time it will keep accelerate at least 5 minutes or more.

    I don't know what else to do about it. You can someone help me?

    I still find myself make too many assumptions.
    First of all, I guess your derivative of clock occurs during the time when the computer is running and not during the period where it is off (or immediately early)?
    Second, I'm assuming that when you run the command "w32tm/Resync" above, the clock made it back to the correct time and no errors were reported?
    Third, you say that your clock drift 5 minutes or more, but you do not tell us how long this gain occurs.  It is two times more win if you wait twice as long to check?  Is the gain gradual or sudden?  Keep he wins or if he stops wins once it arrives before?

    Conditions of default for a computer connected non-member of the field, the time will be updated network-time only at the start and then once a week.  If you are winning too much too quickly, you can adjust how many times your computer asks for time.  Computers in the domain must be more precise and one every hour for a default time synchronization.  You can set your W32tm to that of a computer in the domain to resynchronize your computer more often (SpecialPollInterval).  Here are two articles that describe the clock settings:

    "How to synchronize the time with the time service Windows in Windows XP"
      <>http://support.Microsoft.com/kb/307897 >
    "Time Windows Services tools and settings.
      <>http://TechNet.Microsoft.com/en-us/library/cc773263%28V=WS.10%29.aspx >

    HTH,
    JW

  • I hope someone can help me. I changed a few settings in the BIOS Setup, and now I have just a black screen. I changed the main boot to the DVD player device. is it possible to reset to original settings?

    I hope someone can help me. I changed a few settings in the BIOS Setup, and now I have just a black screen. I changed the main boot to the DVD player device.  is it possible to reset to original settings?
    I am running Windows XP

    clint341,
    Thanks for posting on the Microsoft Answers forum.  We cannot guide you more precisely by changing the BIOS settings that the BIOS settings are specific to your motherboard.  However, most (if not all) parameters of the BIOS have an option to restore the default BIOS (sometimes called "default opitimized").  It may be an option in the menu that you highlight, then press enter or it can be assigned to an F key and States at the bottom of the screen, press F? for the default settings.  I hope this helps.  If you are still not able to reset, check with the manufacturer of PC for more information about the BIOS. Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Vista-the date and time are reset to dec 2007

    Whenever my computer load now, the date and time are reset to dec 2007 and I continue to have this change manually. I am owner of Acer - windows Vista purchased in 2008. Help, please!

    Hello

    This time is normally caused by a battery CMOS failed in the motherboard.

    Time/date settings are preserved after turning off the power when that battery works

    They are a piece of currency-sized battery and cost about $5 to buy.

    "How to replace the battery CMOS.

    http://www.computerhope.com/issues/ch000239.htm

    See you soon.

Maybe you are looking for

  • NB200 - choppy playback Office of BBC iPlayer

    Hello I just bought a notebook nb200. I'm very happy with it. I bought it like all the comments said that she played the contents of the BBC iPlayer without problem. It's true, but I also downloaded the "BBC iPlayer Desktop" application, so I can dow

  • Satellite L30-134 PSL33 - Question about the version of the BIOS and the type of DVD writer

    Hello! I bought a Toshiba L30-134 PSL33 the week last in Hungary. I recorded to Toshiba international warranty, so I saw that my cell was made the 19.10.2006.My friend bought the same laptop (Toshiba L30-134 PSL33) too (also in Hungary), two weeks ag

  • Color laserjet 2840 and windows 8.1

    Hi, I'm running for laptop HP Pavilion dv9700 entertainment. Just finished the clean install of windows 8.1 Run big so far. Before I went from Vista 32 to 8.1 Windows I used this same printer on my machine and I used a suite of HP called something li

  • How to delete sites duplicated in the list of Favorites

    I accidentally moved a folder containing multiple copies of favorite websites in my list of favorites on my home page. . is there a way to delete these entries in a group without deleting favorites that I already had. Thank you

  • stuck on welcome

    My computer gets stuck on the home screen when I boot.