Action Script code to restart the application air at regular intervals

I hope that someone more versed in the action script 3 for air can help me!

I have an app which I intend to display on the ipad at an exhibition. I'd be able to add code to the script action.
who's going to restart the application after a certain period of time (say 5 minutes), if it has not interacted with that is the screen has not affected?

I would be very grateful if someone could help me with this

You can call a function when the idle time is 5 minutes and function reset everything that is appropriate for your application:

var fiveMin:int = 5 * 60 * 1000;

var: timer = new Timer(fiveMin,0);

timer.addEventListener (TimerEvent.TIMER, resetAppF);

Timer.Start ();

this.addEventListener (MouseEvent.MOUSE_DOWN, resetTimerF);

function resetTimerF(e:MouseEvent):void {}

Timer.Reset ();

Timer.Start ();

}

function resetAppF(e:TimerEvent):void {}

do all reset your app

}

Tags: Adobe Animate

Similar Questions

  • I try to install an air 320u sierra wireless card and I get an error message "could not access vb run time for custom action script. Cannot install the Manager of mobile broadband services.

    could not access vb run time for custom action script

    I try to install an air 320u sierra wireless card and I get an error message "could not access vb run time for custom action script.  Cannot install the Manager of mobile broadband services.  Any ideas?

    Hello

    I suggest you run the fixit and see if it helps:

    http://support.Microsoft.com/mats/Program_Install_and_Uninstall

    Also check out this link:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_programs/error-2738-could-not-access-VBScript-run-time-for/1a4499ae-8bc1-4534-9c6f-4d399ac70d9a

    It will be useful.

  • Even if I have cookies recording enable when I restart the application in that I have to enter all of the newspapers in detail yet. How do use cookies stored?

    Have the ability to save cookies and all the other stuff already activated, I connect to several sites (e.g. gmail).

    When for some reason I restart the application, the site prompts me to fill again in my log in details. The strange thing is that on my desktop PC, it seems to have exactly the same parameters however save in this case, or by using saved cookies actually works.

    Which is maybe a problem of Ubuntu? I do not know. But some profile settings are reset any time that I opened the application.

    Any ideas?

    Thank you

    Try to clear your Cookies for the sites concerned.

    Tools > Options-> life privacy - Cookies = the button show Cookies

    Enter the domain name in the top search bar and all Cookies for this URL will be displayed. Unless you can figure out which is Cookie to "remember me", you will need to delete them all.

    Hold the {Ctrl} key while you click each Cookie in the small window. When this list is all highlighted, click the Cookie delete button at the bottom left.

    When you are finished click Close.

    If this problem persists, you may need to delete the __cookies.sqlite__ file in your profile folder.

    http://support.Mozilla.com/en-us/KB/profiles#How_to_find_your_profile

    You might need to view your "hidden files and folders" through Options of folders in the control panel

  • installed the game CD Gears of War on my computer (Windows VISTA) and make me "Please insert the correct DVD - ROM, click OK and restart the application" - but the disk is IN the drive.

    original title: Gears of War for PC (Vista)

    I installed Gears of War game CD on my computer (Windows VISTA) and make me "Please insert the correct DVD - ROM, click OK and restart the application" - but the disk is IN the drive.  I've been on the net and does not know what is the problem and why this game will not run.  I've installed, uninstalled, reinstalled tried to run as administrator, got the latest patch, all the things that have said all sites to do - anyone have any ideas?  Any help would be appreciated!  Thank you!

    Hi NoOneSpeciale,

    It is very possible that your CD may be damaged.  Is it possible to get another copy to try on your machine? Or try this copy on another machine to see if it works or not.
    Also check in control panel--> system--> for you Device Manager make sure that there is no yellow/red icon next to the CD player and it's function correctly.

    Let us know the result, Kevin
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • When I try to run Age Of Empires with the CD in, I get a message "Please insert the right CD-ROM, select OK and restart the application.

    Former title: Trouble running games CD, post installation under Vista. That is to say 2 AoE, Warrior kings.

    I have vista on my laptop, I installed games like shogun and medieval total war and they both work perfectly, I tried to put it on the age empires and warrior kings: battles who are also on a cd format, I installed the last but they usually run after that. Although the instialltion is over, I get asked if I wanted to leave the program to run as administrator. : s

    DVD/CD drive recognize there is a disc, but does not work automatically. I can't install the program normally when I run the setup.exe for the game. When I try to run the program with the CD in, I get a message "Please insert the right CD-ROM, select OK and restart the application.

    I tried to run them in compatibility mode, using all variants. and also I tried soome of advice from the help article about the disk drivers. game discs are clean and one striped.

    Why can I install the program and access the drive to use the files it contains, but then not use the disk?

    Hello
     

    This problem may occur if one of the following conditions is true:
    a. you do not use the game disc to start the program.
    b. the CD player is not compatible with the program.
    c. using a copy of the program CD.
    d. you are not connected to the computer as an administrator.
    e. the programs interfere with the start of the game which is running but is invisible to you.
    f. the CD-ROM drive uses out-of-date drivers.
     
     
    I would ask you to try the methods listed in the article below:
    Error message or the game stops responding on the "Loading" screen when you start a Microsoft game: "insert the right CD.
    http://support.Microsoft.com/kb/228985/en-us

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Cannot install Windows 7 "Windows didn't prepare the computer to start the next phase of the installation." to install Windows, restart the application.

    Original title: Installation of Windows 7.

    I tried to install Windows 7 (clean install from XP and reveived the following message is displayed:)

    Windows didn't prepare the computer to start the next phase of the installation.  to install Windows, restart the application.

    I restarted my PC, anti anti-virus disabled (as advised) and still get the error message.

    According to the Upgrade Advisor Windows 7 my PC is compatible.

    Any ideas?

    If you have compatible hardware and your computer still stops responding, disable any unnecessary material. Remove (USB) universal serial bus devices. Remove or disable network cards, sound cards and cards of the series; and then restart the installation.

    Boot from the Windows 7 DVD
    Click Install now
    Accept the license agreement
    When the option is displayed to select a type of installation, click (Custom advanced)

    Select the disk partition where you want to install Windows 7 click Next.

    You will receive the following warning:

    The partition you have selected may contain files from a previous Installation of Windows. If so, these files and folders will be moved to a folder named Windows.old. You will be able to access the information in Windows.old, but you will be able to use your previous version of Windows.

    (At all costs, do NOT click on anything in Format, deletion or Partition name.) So even do a custom installation, your personal files are still kept. Click OK

    The installation program will now begin installation. During installation, your computer will be restarted several times.

    Once the installation is complete, you can complete the Out of Box experience as the choice of your laptop, create a username, password, your time zone. You can then proceed to download the latest updates for Windows and reinstall your applications and drivers.

    You can then retrieve your personal files from the Windows.old folder and reinstall all of your applications and drivers.

    http://notebooks.com/2010/11/09/how-to-recover-documents-music-and-email-after-upgrading-with-the-Windows-old-folder/

  • Restart the application

    Dear all, I would like to restart the application programmatically. Is this possible? If possible invite you to share the sample sample. Thanks & regards Sudhakar choup

    Use ApplicationManager to restart the application. In the example below, we establish the restart to 60.1 seconds start time in the future. It is because the time has a granularity of one minute.

    See the javadocs for ApplicationManager

    ApplicationDescriptor thisApp = ApplicationDescriptor.currentApplicationDescriptor ();
    ApplicationManager.getApplicationManager (.scheduleApplication) (thisApp, System.currentTimeMillis () + 60100, true);

  • Why I can't change my script if I resize the application - ADOBE STORY - to fit all of the space on my screen, by clicking on the icon full screen? What did I miss? Thank you

    Why I can't change my script if I resize the application - ADOBE STORY - to fit all of the space on my screen, by clicking on the icon full screen? What did I miss? Thank you

    Sorry, but the web application from Adobe Story doesn't support editing mode full screen.

  • Cannot install point. Restart the application and re-download your purchase.

    We have an application published with two folios in there. Several users have complained that when they try to update the app, they get this error: "cannot install point. Please restart the application and download your new purchase. "I have NOT been able to reproduce this error on 4 different iPads. However, I have 3 users who receive this error whenever they try to update the folio.

    They tried to remove the app and reinstall. The same problem.

    They tried several different WiFi FORT connections, same problem.

    A user came to my office. We have updated the app on my iPad. Worked well. Tried it on his iPad. Got the error. Same WiFi connection within minutes following one another.

    What is going on?!!!

    Adobe has released a series of patches for viewers to iOS to handle this problem, you have described. V31 V32 these patches and are in need of an update. Knowing that your application is v29, v32 app you just submit you should be fine.

  • restart the application automatically

    Hi all

    I apply BB who have two modules of the application, (two classes extends UIApplication).

    which acts as a server and client

    How do I restart on these two applications without affecting the other module?

    is this possible?

    Thank you

    OK, here's how I'd do it, assuming I know that

    PTClockListener

    still works.

    (1) I would like to add a GlobalEventListener to PTClockListener

    (2) in the treatment of the GlobalEvent, I make the code to reboot as shown previously.

    (3) I would send the GlobalEvent whenever I wanted the PTClockListener to restart.

    You will find this useful for GlobalEvents:

    http://supportforums.BlackBerry.com/T5/Java-development/global-events-and-global-event-listeners/TA-...

    There are other ways, bt, I think it's the cleanest.

  • Action Script Code to disable AutoPlay

    Hello.


    Quick question, I hope that simple.

    I have following code to play a video FLV is flash

    import fl.video.MetadataEvent

    flvPlayback.addEventListener (MetadataEvent.METADATA_RECEIVED, onMetadata);

    flvPlayback.play ("Movie.flv");

    How to encode the Action Script to set AutoPlay to 'false '?


    Thank you
    Javier

    Using the ".load" instead of .play method

    Who should take over the video instead of play immediately.

    ~ Plystire

  • Sidebar gadgets are in random order each time I restart the application from the sidebar or I restart the computer.

    For some reason, whenever I restart the computer or I close the application of the sidebar and re - open in the start menu, my gadgets are in random order.

    I saw another thread for this on Microsoft Answers Social, but his problem was just after installation of SP2. I had SP2 for a long time and recently began to experience this.

    A moderator of Microsoft support proposed making sure that Java and Flash have been fully installed and implemented to date. I have both.

    However, due to a recent achievement in the platform of Adobe Flash (the one that allows the remote control, discovered last week), Adobe has proposed the Flash upgrade to the release candidate 7 (10.1) version. What I did. Could that be the cause? Hope not. If this is the case, then I will be happy to downshift until a solution has been found. However, the Java platform is perfectly updated and operational. And it's the 6.20 version, which is the latest public version.

    Well, I reformatted my hard drive and all restore factory settings.

    Everything worked fine... Until I installed again my Adobe CS5 Master Collection.

    So I started uninstalling the components one by one to see what worked...

    It turns out that Adobe Acrobat 9 Pro Extended (or rather the 64-bit extension him) makes the sidebar go haywire.

    Uninstalled Acrobat 9 and no problems yet. Restarted several times to make sure.

    I hope that one day I'll find an update to Acrobat who sets. Maybe I'll go post in the Adobe forums for that one.

    Whatever it is, no biggie for me - I barely use Acrobat.

  • Why then I restart the application immediately?

    After reading around, I feel that it is recommended to plan restarting the app for up to a minute later as follows:

    ApplicationDescriptor descr = ApplicationDescriptor.currentApplicationDescriptor();
    ApplicationDescriptor newDesc = new ApplicationDescriptor( descr,
        "My App Name",
        new String[] { "myArgument" },
        descr.getPosition(),
        descr.getNameResourceBundle(),
        descr.getNameResourceId(),
        ApplicationDescriptor.FLAG_AUTO_RESTART | ApplicationDescriptor.FLAG_SYSTEM
        );
    ApplicationManager appManager = ApplicationManager.getApplicationManager();
    appManager.scheduleApplication(newDesc,System.currentTimeMillis() + 60001, true);
    System.out.println("Application is exiting..." );
    System.exit(0);
    return;
    

    However, an immediate restart seems to work just fine, the following:

    ApplicationDescriptor descr = ApplicationDescriptor.currentApplicationDescriptor();
    ApplicationDescriptor newDesc = new ApplicationDescriptor( descr,
        "My App Name",
        new String[] { "myArgument" },
        descr.getPosition(),
        descr.getNameResourceBundle(),
        descr.getNameResourceId(),
        ApplicationDescriptor.FLAG_AUTO_RESTART | ApplicationDescriptor.FLAG_SYSTEM
        );
    ApplicationManager appManager = ApplicationManager.getApplicationManager();
    try
    {
        appManager.runApplication(newDesc);
        System.exit(0);
        return;
    }
    catch(ApplicationManagerException e)
    {
        // Handle situation when application cannot run
        System.out.println("Couldn't restart app: " + e.getMessage());
    }
    

    Can someone explain why I should do it the first way instead please? I really don't want a delay if I can help it.

    Reviewing logs of my release, I also wonder why the application scheduled (with delay ms 60001) often seems to run within 30 seconds after the restart. I run on a simulator of 9930 at present.

    Thank you very much.

    Think that if you were just amgr.launchApplication, if executed somehow before the end of the app was fully, he could just go back to the app in the foreground, and it ends then cancel.  So it would not launch.

    but you can try it

    An alternative is to include another point of entry for the same app module, which, directly by hand, simply appmgr.launchApplication what you're trying to restart.  Then you put one launchApplication for this other point of entry where you currently have the scheduleApplication, and it could act as a relay, ensure that enough that delaying the application probably will restart immediately after that he finished closing.

    that is to say:

    project 1:  CoffeeMaker.jdp            regular app, no arguments            module name: company_CoffeeMaker
    
    project 2:  CoffeeMakerReset.jdp            alternate entry point to CoffeeMaker            module name: company_CoffeeMaker            argument: Starter            check "System App"
    
    class CoffeeMaker {  public static CoffeeMaker app;
    
      public static void main(String args[]) {    if ((args.length > 0) && args[0].equals("Starter")) {      ApplicationManager.getApplicationManager().launchApplication("company_CoffeeMaker");      }    else {      app = new CoffeeMaker();      try {        app.enterEventDispatcher();        } catch (Exception e) {        ApplicationManager.getApplicationManager().launchApplication("company_CoffeeMaker?Starter");        }      }    }
    
     }
    

    Personally, I use scheduleApplication with a 10 second delay.

  • Is there a setting to encapsulate the code when resizing the application window?

    I find it very annoying that I have to scroll horizontally to access specific areas of my code. Is there a sort preference that I can put to wrap my code so that it would not extend beyond the visible area of the application window? Thank you.

    Hey grafix85,

    We will have Word wrap in the next version of the Code of edge which is coming in the next few weeks.

    = Ryan

    [email protected]

  • Looking for Advanced Action script that will close the project

    Hi all

    It seems so simple but I can't seem to understand. Does anyone know of scripts that will cause the project to close when the user clicks a button? I have a project built in 6 Captivate that is set to close its 'End of the project' preferences and has multiple options of branches. I want to have a button to END that will close the entire project. The best that I got is simply apply an action of 'CONTINUE' on the last slide, but since this slide also includes a button that jumps to another branch, the blade simply crashes when you click the END button.

    Any thoughts?

    Krista

    You can use a 'Execute JavaScript' action with the script below:

    window.close();
    

    OR

    window.top.close();
    

    What script you use depends on how your LMS launches your course.  If it is in the main window, use Window.Close ().  If it is in a window child, then window.top.close ().  If you are not sure, then a little experience by downloading a course of a slide with two buttons.  The first button must execute Window.Close (); and the 2nd button must execute window.top.close ();.  When your LMS is launching the course, try the buttons and see one that works.

    F12 (Web Preview) will not give you a solid test since your LMS can launch your course differently... it's the kind of thing that should be tested in your LMS to be sure it works.

    Jim Leichliter

Maybe you are looking for