private function initApp():void { ld = new Loader(); ld.contentLoaderInfo.addEventListener(Event.COMPLETE,loadCompleted); ld.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,ioErrHandler); ld.contentLoaderInfo.addEventListener( SecurityErrorEvent.SECURITY_ERROR,securityErrHandler);
}
private function loadSWF():void { var sSWF:String = txtURL.text; var req:URLRequest = new URLRequest(sSWF); var context:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain,null); req.contentType = ""; ld.load(req,context); // addChild(ld); }
private function getDef():void { var cls:Class = loadClassDefinition(txtClassName.text); if(cls){ var obj:Object = new cls(); txtDump.text = flash.utils.describeType(obj).toString(); } }