Section 1
//MainEmbEmb (MainEmbEmb)
package {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.net.*;
public dynamic class MainEmbEmb extends Sprite {
private var loader:Loader;
public function MainEmbEmb():void{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
Security.allowDomain("*");
this.graphics.beginFill(11581116);
this.graphics.drawRect(0, 0, 700, 500);
this.graphics.endFill();
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.INIT, initListenerEmbEmb);
loader.load(new URLRequest("http://qlplay.com/MiniFlashRTS/MFRTS_emb.swf"), new LoaderContext(true, new ApplicationDomain()));
}
private function completeHandler(_arg1:Event):void{
addChild(_arg1.target.content);
}
private function initListenerEmbEmb(_arg1:Event):void{
addChild(_arg1.target.content);
_arg1.target.content.initEmb(stage);
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
}
private function configureListeners(_arg1:IEventDispatcher):void{
_arg1.addEventListener(Event.COMPLETE, completeHandler);
_arg1.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
}
}
}//package