Skip to main content
Known Participant
June 16, 2011
Answered

How to make a save state in the Flash iphone ios xml file?

  • June 16, 2011
  • 1 reply
  • 912 views

Hi, I'm looking for a way of pausing an ipad app, when you press the home button. So if you leave the app, you can come back to
the place you were at.

Is there a toggle from within flash CS5.5 that does this? If not is there some AS3 code I can put into my first frame?

I've seen the code below on a recent post, so I though I'd insert it near the bottom of the XML file. But whenever I modify this and

republish the FLA, it comes up with errors.

I'd like a reverse of this code below - instead of exit, pause. and also need to know where exactly to put it?

"When a user switches away from an AIR application it enters the background and pauses. If you want your application to exit completely instead of pausing, set the UIApplicationExitsOnSuspend property to YES"

<key>UIApplicationExitsOnSuspend</key>

<string>NO</string>

Anyone got a simple solution for this? Thanks!

This topic has been closed for replies.
Correct answer Colin Holgate

It isn't dependent on the AIR in stalled in your system, it's just based on the packager you're using. If you're using a trial download of CS5.5, then the second line of the app descriptor xml should read like this:

<application xmlns="http://ns.adobe.com/air/application/2.6">

That would show that it's AIR 2.6.

1 reply

Colin Holgate
Inspiring
June 16, 2011

If you're building with AIR 2.6 or 2.7, you don't have to do anything. The normal behavior is that it gets paused, and coming back after using the Home button will be exactly where you were. Remove that bit of xml.

monkey500Author
Known Participant
June 17, 2011

Thanks, that's strange because I'm using a trial version of Flash CS5.5, So I assume I have the latest Air. Maybe I'll try deleting the xml and republish..

Where in my system can I find out what version of Air is installed?

Thanks again

Colin Holgate
Colin HolgateCorrect answer
Inspiring
June 17, 2011

It isn't dependent on the AIR in stalled in your system, it's just based on the packager you're using. If you're using a trial download of CS5.5, then the second line of the app descriptor xml should read like this:

<application xmlns="http://ns.adobe.com/air/application/2.6">

That would show that it's AIR 2.6.