Loading multiple swfs using air 3.6 for ios
Adobe, can you please provide us with the code to load multiple swf files for ios. Please provide examples. The code below loads multiple swfs, but the swfs stall, so this does not seem to be a solution.
Code description: A flash file made up of 4 frames with forward and back buttons that navigate from frame to frame. The code loads three different swf files in frames 2, 3 and 4.
Frame 1:
var myLoader:Loader;
var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
if(myLoader == null){myLoader = new Loader(); addChild(myLoader); }
else {myLoader.unload();}
Frame 2:
- myLoader.unload();
- myLoader.load(new URLRequest("file1.swf"),loaderContext);
Frame 3:
- myLoader.unload();
- myLoader.load(new URLRequest("file2.swf"),loaderContext);
Frame 4:
- myLoader.unload();
- myLoader.load(new URLRequest("file3.swf"),loaderContext);
