adobe flash buider (flex4): addChild() is not available in this class.
- by ufk
Hi.
I want to be able to load an swf into a flex 4 application in order to use it's classes.
var ldr:Loader=new Loader();
ldr.load(new URLRequest("file://path/to/fileswf"));
ldr.contentLoaderInfo.
addEventListener(Event.INIT, loaded);
function loaded(evt:Event):void { addChild(ldr); }
i receive the error:
Error: addChild() is not available in…