Section 1
//ComicLoader (c.ComicLoader)
package c {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class ComicLoader extends MovieClip {
private var gameURL:String;// = "comicbook.swf"
public var _gameMC:MovieClip;
public var _loader:MovieClip;
private var game:Object;
public function ComicLoader():void{
gameURL = "comicbook.swf";
super();
init();
}
private function init():void{
var _local1:Loader;
_local1 = new Loader();
trace(gameURL);
_local1.load(new URLRequest(gameURL));
_local1.contentLoaderInfo.addEventListener(Event.COMPLETE, gameLoaded, false, 0, true);
_gameMC.addChild(_local1);
}
private function gameLoaded(_arg1:Event):void{
var _local2:LoaderInfo;
removeChild(_loader);
_local2 = (_arg1.target as LoaderInfo);
_local2.removeEventListener(Event.COMPLETE, gameLoaded);
game = Object(_arg1.target.content);
}
}
}//package c