1 person found this helpful
the exit() method is not supported by iOS.
One way to get around exit() not working on iOS might be to set the following property in your iPhone section of your app XML:
That would force your application to exit on suspend (aka the user pressing the hardware button)
Thank you Mr K. I had thought it was functional last week, but I must have been daydreaming )
Mr Nabren, Thank you. Just went looking for it... Is the xml in flash/pro iOS SDK written on the fly. Can I set it anywhere to include a setting?
Learnt something new again today. Thanks
Additionally: could the setting be changed via AS3 runtime ?
Try setting NativeApplication.nativeApplication.autoExit = true or false to set it during runtime
Might need to set NativeApplication.nativeApplication.executeInBackground as well - never tried to do this at runtime
Thanks Nabren, tried doing a few of those, including fscommand exit, but all to no avail, only the entry to the -app.xml had an effect. Thanks again for the answer in the xml file.