Home_btn to reload iOS app is not working???
hello again,
I can't find the solution.
I hope someone can help me because I'm desparate.
I have a main-SFW within several levels-SWF's.
Now I want on each level a Home_btn so I can reload the app.
Here is my code in some SWF-level:
Home_btn.addEventListener(MouseEvent.CLICK, go_home);
function go_home(event: MouseEvent) {
var appDomain_1:ApplicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
var context1:LoaderContext = new LoaderContext(false, appDomain_1);
var loader1:Loader = new Loader();
var file1: File = File.applicationDirectory.resolvePath("main.swf");
loader1.load(new URLRequest (file1.url), context1);
addChild(loader1);
}
in the main.SWF the level_SWF's won"t open again.
I have included all SWF's in the MainSWF and the main SWF also.
I hope someone can help me.
