Copy link to clipboard
Copied
hello,
Is there a way to exit and reload an AIR iOS APP ?
I know the nativeApplication.exit() won't work on iOS.
I can't find a solution on the internet.
I hope someone can help me.
Copy link to clipboard
Copied
create a new main air app that loads your current app.
Copy link to clipboard
Copied
thanks voor the reply!!
But i figured it out how to do this.
i used the code:
var appDomain2:ApplicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
var context2:LoaderContext = new LoaderContext(false, appDomain2);
var loader2:Loader = new Loader();
loader2.load(new URLRequest ("myMain.swf"), context2);
But it did"t works.
Copy link to clipboard
Copied
it did not work?
what problem did you see?
did you add your loader to the display list?
Copy link to clipboard
Copied
thanks for reply.
no, it did not work. I see that nothings happens. The loader will not open it.
How must i do it exactly add it to the display list? Because at the moment i can"t see the problem.
Copy link to clipboard
Copied
you need,
addChild(loader2)
Copy link to clipboard
Copied
oh okeeee!!
yes I did.
I don"t know wat te problem is. There is something I'm doing wrong.
Copy link to clipboard
Copied
is myMain.swf added to your included files?
Copy link to clipboard
Copied
Yes i did
Copy link to clipboard
Copied
i can't think of any other way to help via a forum.
someone will probably need to download your files to find the problem.
Copy link to clipboard
Copied
Thanks kglad .
I 'm sure now how to do it. That's great!! I think i must with a fresh brain look at it again.
At the moment i didn't see it. thanks a lot!!
Copy link to clipboard
Copied
you're welcome.