home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 148 / MOBICLIC148.ISO / mac / DATA / DSS148 / DSS148_00 / DSS148_00.swf / scripts / DSS148_00.as
Text File  |  2012-10-16  |  2KB  |  90 lines

  1. package
  2. {
  3.    import com.milanpresse.capsule.GameEngineCapsule;
  4.    import com.milanpresse.tools.GlobalesFunctions;
  5.    import dss148.Commun;
  6.    import dss148_00.CapsuleAlgo;
  7.    
  8.    public class DSS148_00 extends GameEngineCapsule
  9.    {
  10.        
  11.       
  12.       private var algo:CapsuleAlgo = null;
  13.       
  14.       public var _commun:Commun;
  15.       
  16.       public var mediasToAdapt:Array;
  17.       
  18.       public function DSS148_00()
  19.       {
  20.          this.mediasToAdapt = [];
  21.          super();
  22.       }
  23.       
  24.       public function onConfigLoaded(param1:Function) : void
  25.       {
  26.          var _loc2_:int = 0;
  27.          this._commun = new Commun(engine);
  28.          if(!(this._commun.memo.savePoint.moduleNum == 0 && this._commun.memo.savePoint.status == "NEW_GAME"))
  29.          {
  30.             this.mediasToAdapt = [{
  31.                "id":"A_DSS147_00_A_DSS147_00",
  32.                "preload":"false"
  33.             },{
  34.                "id":"S_FR_DSS148_00_09",
  35.                "preload":"false"
  36.             },{
  37.                "id":"S_FR_DSS148_00_11",
  38.                "preload":"false"
  39.             },{
  40.                "id":"S_FR_DSS148_00_29",
  41.                "preload":"false"
  42.             },{
  43.                "id":"S_FR_DSS148_00_31",
  44.                "preload":"false"
  45.             }];
  46.             _loc2_ = 3;
  47.             while(_loc2_ <= 5)
  48.             {
  49.                this.mediasToAdapt.push({
  50.                   "id":"S_FR_DSS148_00_" + GlobalesFunctions.gimme2digits(_loc2_),
  51.                   "preload":"false"
  52.                });
  53.                _loc2_++;
  54.             }
  55.             _loc2_ = 13;
  56.             while(_loc2_ <= 28)
  57.             {
  58.                this.mediasToAdapt.push({
  59.                   "id":"S_FR_DSS148_00_" + GlobalesFunctions.gimme2digits(_loc2_),
  60.                   "preload":"false"
  61.                });
  62.                _loc2_++;
  63.             }
  64.          }
  65.          param1();
  66.       }
  67.       
  68.       override public function start(param1:Object = null) : void
  69.       {
  70.          this.algo = new CapsuleAlgo(engine,this._commun);
  71.       }
  72.       
  73.       override public function destroy() : void
  74.       {
  75.          this.algo.destroy();
  76.          super.destroy();
  77.       }
  78.       
  79.       override public function sleep() : void
  80.       {
  81.          this.algo.sleep();
  82.       }
  83.       
  84.       override public function wake() : void
  85.       {
  86.          this.algo.wake();
  87.       }
  88.    }
  89. }
  90.