home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 159 / MOBICLIC159.ISO / mac / DATA / DSS159 / DSS159_01 / DSS159_01.swf / scripts / DSS159_01.as
Text File  |  2013-11-19  |  1KB  |  50 lines

  1. package
  2. {
  3.    import com.milanpresse.capsule.AbstractMenuCapsule;
  4.    import dss159_01.CapsuleAlgo;
  5.    import dss159_01.engineaddons.facades.GameEngine;
  6.    
  7.    public class DSS159_01 extends AbstractMenuCapsule
  8.    {
  9.        
  10.       
  11.       private var game:GameEngine;
  12.       
  13.       private var algo:CapsuleAlgo = null;
  14.       
  15.       public function DSS159_01()
  16.       {
  17.          super();
  18.       }
  19.       
  20.       public function onEngineInitialized(param1:Function) : void
  21.       {
  22.          this.game = new GameEngine(this);
  23.          this.game.mainAlgo = new CapsuleAlgo(this.game);
  24.          param1();
  25.       }
  26.       
  27.       override public function start(param1:Object = null) : void
  28.       {
  29.          this.game.start();
  30.       }
  31.       
  32.       override public function destroy() : void
  33.       {
  34.          this.game.destroy();
  35.          super.destroy();
  36.       }
  37.       
  38.       override public function sleep() : void
  39.       {
  40.          this.game.sleep();
  41.       }
  42.       
  43.       override public function wake() : void
  44.       {
  45.          this.game.wake();
  46.          this.game.mainAlgo.wake2();
  47.       }
  48.    }
  49. }
  50.