home *** CD-ROM | disk | FTP | other *** search
- package game
- {
- import flash.display.MovieClip;
- import flash.events.KeyboardEvent;
- import flash.media.Sound;
- import flash.media.SoundChannel;
-
- [Embed(source="/_assets/assets.swf", symbol="game.GameMap")]
- public class GameMap extends MovieClip
- {
-
-
- internal var chanell:SoundChannel;
-
- public function GameMap()
- {
- var _loc1_:Sound = null;
- chanell = new SoundChannel();
- super();
- addFrameScript(64,frame65,82,frame83,243,frame244,263,frame264,404,frame405,425,frame426,524,frame525,557,frame558,684,frame685,722,frame723);
- _loc1_ = new krokinaukowcy01();
- if(!ThisGameManager.getInstance().mute)
- {
- chanell = _loc1_.play();
- }
- this.gotoAndPlay("Level" + ((ThisGameManager.getInstance().currentLevel - 1) / 2 + 1).toString());
- }
-
- internal function frame65() : *
- {
- makeClickable();
- }
-
- internal function frame264() : *
- {
- this.stop();
- }
-
- internal function frame558() : *
- {
- this.stop();
- }
-
- internal function frame426() : *
- {
- this.stop();
- }
-
- internal function frame723() : *
- {
- this.stop();
- }
-
- internal function frame685() : *
- {
- makeClickable();
- }
-
- internal function frame83() : *
- {
- this.stop();
- }
-
- public function makeClickable() : void
- {
- ThisGameManager.getInstance().stage.addEventListener(KeyboardEvent.KEY_DOWN,goGo);
- chanell.stop();
- }
-
- internal function frame405() : *
- {
- makeClickable();
- }
-
- internal function frame525() : *
- {
- makeClickable();
- }
-
- internal function frame244() : *
- {
- makeClickable();
- }
-
- private function goGo(param1:KeyboardEvent) : void
- {
- ThisGameManager.getInstance().stage.removeEventListener(KeyboardEvent.KEY_DOWN,goGo);
- MovieClip(this.parent).play();
- }
- }
- }
-