When I swap out SWFs using the same loader, the newly loaded SWF is either blank or seems to only play nested movieClips. I believe they were created in ActionScript2 and I don’t have the FLAs for them.
I’ve tried unload and removeChild on the loader, but still the newly loaded SWF doesn’t seem to initialize.
Any help is much appreciated. Thanks.
Heres the AS3 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);
}