home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 155 / MOBICLIC155.ISO / mac / index.swf / scripts / launcher.as < prev   
Text File  |  2013-07-08  |  2KB  |  69 lines

  1. package
  2. {
  3.    import com.milanpresse.capsule.GameEngineCapsule;
  4.    import flash.system.ApplicationDomain;
  5.    
  6.    public class launcher extends GameEngineCapsule
  7.    {
  8.        
  9.       
  10.       private var algo = null;
  11.       
  12.       public var changeModule:Function = null;
  13.       
  14.       public var hostConfig = null;
  15.       
  16.       public var configXMLPath:String = "launcher_config.xml";
  17.       
  18.       public function launcher()
  19.       {
  20.          isHost = true;
  21.          super();
  22.       }
  23.       
  24.       override public function start(param1:Object = null) : void
  25.       {
  26.          var _loc2_:Class = ApplicationDomain.currentDomain.getDefinition("com.milanpresse.launcher.CapsuleAlgo") as Class;
  27.          this.algo = new _loc2_(this);
  28.       }
  29.       
  30.       override public function destroy() : void
  31.       {
  32.          this.algo.destroy();
  33.       }
  34.       
  35.       override public function sleep() : void
  36.       {
  37.       }
  38.       
  39.       override public function wake() : void
  40.       {
  41.       }
  42.       
  43.       public function get musicOn() : Boolean
  44.       {
  45.          return this.algo.musicOn;
  46.       }
  47.       
  48.       public function set musicOn(param1:Boolean) : void
  49.       {
  50.          this.algo.musicOn = param1;
  51.       }
  52.       
  53.       public function get subtitlesOn() : Boolean
  54.       {
  55.          return this.algo.subtitlesOn;
  56.       }
  57.       
  58.       public function set subtitlesOn(param1:Boolean) : void
  59.       {
  60.          this.algo.subtitlesOn = param1;
  61.       }
  62.       
  63.       public function get activeModule() : *
  64.       {
  65.          return this.algo.activeModule;
  66.       }
  67.    }
  68. }
  69.