home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / zombietypocalypse.swf / scripts / game / GameMap.as < prev    next >
Encoding:
Text File  |  2008-09-15  |  2.2 KB  |  92 lines

  1. package game
  2. {
  3.    import flash.display.MovieClip;
  4.    import flash.events.KeyboardEvent;
  5.    import flash.media.Sound;
  6.    import flash.media.SoundChannel;
  7.    
  8.    [Embed(source="/_assets/assets.swf", symbol="game.GameMap")]
  9.    public class GameMap extends MovieClip
  10.    {
  11.        
  12.       
  13.       internal var chanell:SoundChannel;
  14.       
  15.       public function GameMap()
  16.       {
  17.          var _loc1_:Sound = null;
  18.          chanell = new SoundChannel();
  19.          super();
  20.          addFrameScript(64,frame65,82,frame83,243,frame244,263,frame264,404,frame405,425,frame426,524,frame525,557,frame558,684,frame685,722,frame723);
  21.          _loc1_ = new krokinaukowcy01();
  22.          if(!ThisGameManager.getInstance().mute)
  23.          {
  24.             chanell = _loc1_.play();
  25.          }
  26.          this.gotoAndPlay("Level" + ((ThisGameManager.getInstance().currentLevel - 1) / 2 + 1).toString());
  27.       }
  28.       
  29.       internal function frame65() : *
  30.       {
  31.          makeClickable();
  32.       }
  33.       
  34.       internal function frame264() : *
  35.       {
  36.          this.stop();
  37.       }
  38.       
  39.       internal function frame558() : *
  40.       {
  41.          this.stop();
  42.       }
  43.       
  44.       internal function frame426() : *
  45.       {
  46.          this.stop();
  47.       }
  48.       
  49.       internal function frame723() : *
  50.       {
  51.          this.stop();
  52.       }
  53.       
  54.       internal function frame685() : *
  55.       {
  56.          makeClickable();
  57.       }
  58.       
  59.       internal function frame83() : *
  60.       {
  61.          this.stop();
  62.       }
  63.       
  64.       public function makeClickable() : void
  65.       {
  66.          ThisGameManager.getInstance().stage.addEventListener(KeyboardEvent.KEY_DOWN,goGo);
  67.          chanell.stop();
  68.       }
  69.       
  70.       internal function frame405() : *
  71.       {
  72.          makeClickable();
  73.       }
  74.       
  75.       internal function frame525() : *
  76.       {
  77.          makeClickable();
  78.       }
  79.       
  80.       internal function frame244() : *
  81.       {
  82.          makeClickable();
  83.       }
  84.       
  85.       private function goGo(param1:KeyboardEvent) : void
  86.       {
  87.          ThisGameManager.getInstance().stage.removeEventListener(KeyboardEvent.KEY_DOWN,goGo);
  88.          MovieClip(this.parent).play();
  89.       }
  90.    }
  91. }
  92.