public class Main extends Sprite ...{ private var loader:Loader; public function Main() ...{ loader =new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoader); loader.load(new URLRequest("dll/AsWingDLL_1_3_0.swf"), new LoaderContext(false, ApplicationDomain.currentDomain)); }
private function onLoader(event:Event):void ...{ AsWingManager.initAsStandard(this); var frame:JFrame =new JFrame(this,"测试反射"); frame.setSizeWH(400,300); frame.show();