/ Published in: ActionScript 3

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import flash.events.Event; import flash.display.Loader; import flash.net.URLRequest; var swfLoader:Loader = new Loader(); holderMC.addChild(swfLoader); var bgURL:URLRequest = new URLRequest("loadSWF_File.swf"); swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadProdComplete); swfLoader.load(bgURL); function loadProdComplete(e:Event):void { trace(“file loadedâ€); }
Comments
