loader=new Loader(); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,onError); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete); loader.load(new URLRequest(filePath+fileName+".swf")); private function onComplete(event:Event):void { var loadedSWFInfo:LoaderInfo=loader.contentLoaderInfo; var domain:ApplicationDomain=loadedSWFInfo.applicationDomain as ApplicationDomain; var MCClass:Class=domain.getDefinition(fileName) as Class; var mc:MCClass=new MCClass(); }