Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do I get an AIR app to automatically reset upon exit?

New Here ,
Apr 18, 2013 Apr 18, 2013

I've created an AIR application in Flash Professional CS6.  I have videos which play, but when the user taps the home button, the app stays in the spot where it was, which has led to the videos not re-loading when the app is started again.  How do I fix this?

TOPICS
ActionScript
363
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Apr 18, 2013 Apr 18, 2013
LATEST

There is no globalReset function that allows you to go back to the starting state of your app, you either have to save the starting conditions somewhere (for example an array)

or

if your app is embeded in a website you could force a reloading (and thus starting again) by calling

navigateToURL("...myApp.html",_self);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines