Are remote SWF faster than local SWF on AIR IOS app because I can 't use the unload code.
Are remote SWF faster than local SWF on AIR IOS app because I can't use the unload code on AIR IOS .
my local code:
stop();
import flash.net.URLRequest;
import flash.system.ApplicationDomain;
import flash.system.LoaderContext;
import flash.filesystem.File;
import flash.filesystem.FileMode;
import flash.filesystem.FileStream
go_level_2.addEventListener(MouseEvent.CLICK,level_2);
function level_2(event:MouseEvent){
var loader2:Loader = new Loader();
var loaderContext2:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);
var file2:File=File.applicationDirectory.resolvePath("level2.swf");
loader2.load(new URLRequest(file2.url), loaderContext2);
addChild(loader2);
}
Because this works not for me, because i can't unload the SWF file en the app becomes slow, i will put the SWf''s on a remote place.
But I can't imagine what happens when i loaded the SWF file from remote. stays it on the server or stays it on my app when i unloaded it, and the app also becomes bigger. I hope you can help me because i went on the internet for a week and don't now how to go on further.