Skip to main content
Known Participant
April 18, 2013
Question

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

  • April 18, 2013
  • 1 reply
  • 376 views

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?

This topic has been closed for replies.

1 reply

Inspiring
April 18, 2013

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);