I posted earlier, but I’m not sure my post was very clear. Here it is restated:
I’m trying to build a portfolio using ActionScript 3 that imports SWFs created in ActionScript 2.
The first time one of these SWFs loads and plays everything works fine, however when I try and load a 2nd SWF into the loader, the new SWF only plays a nested mc within, not the entire movie.
I didn’t build these external SWFs (I did the artwork) so I’m not sure how they were coded, but it’s as if assets on the main timeline are not being seen.
I tried unload() and removeChild(), but they didn’t fix the problem.
Any help is appreciated.
Here is the code:
var clipLoader:Loader = new Loader();
var url:String = “ad1.swf”;
var urlReq:URLRequest = new URLRequest(url);
var url2:String = “ad2.swf”;
var urlReq2:URLRequest = new URLRequest(url2);
clipLoader.load(urlReq);
addChild(clipLoader);
box0.addEventListener(MouseEvent.CLICK, resetClip);
function resetClip(event:MouseEvent):void {
clipLoader.load(urlReq2);
}