I'm trying to use a SWFLoader to load an Application and add the loaded Application to my Displaylist.
public function onComplete(e:Event):void {
someContainer.addChild((e.target.content));
}
//somewhere in main
var loader: SWFLoader = new SWFLoader();
loader.addEventListener(Event.COMPLETE, onComplete);
loader.load(urlToSwf);
I'm getting the errormessage
cannot convert _Main_mx_managers_SystemManager@c513eb9 to mx.core.IUIComponent
Could anybody tell me why this won't work or how i can fix this?
Thanks, Sims