home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / bossbash.swf / scripts / DefineSprite_574_game_mario / frame_1 / DoAction.as
Encoding:
Text File  |  2007-09-28  |  928 b   |  39 lines

  1. stop();
  2. this.jump = new Sound(this);
  3. this.jump.attachSound("bomtoons_jump");
  4. this.select = new Sound(this);
  5. this.select.attachSound("bomtoons_select");
  6. this.lose = new Sound(this);
  7. this.lose.attachSound("bomtoons_lose");
  8. this.thro = new Sound(this);
  9. this.thro.attachSound("bomtoons_throw");
  10. this.win = new Sound(this);
  11. this.win.attachSound("bomtoons_win");
  12. this.shrink = new Sound(this);
  13. this.shrink.attachSound("bomtoons_shrink");
  14. this.hurt = new Sound(this);
  15. this.hurt.attachSound("bomtoons_hurt");
  16. this.whichdude = 0;
  17. this.onEnterFrame = function()
  18. {
  19.    if(Key.isDown(32))
  20.    {
  21.       stopAllSounds();
  22.       this.select.start();
  23.       delete this.onEnterFrame;
  24.       this.gotoAndStop(2);
  25.    }
  26.    if(this.whichdude == 0)
  27.    {
  28.       this.arrow._x = 190;
  29.    }
  30.    if(this.whichdude == 1)
  31.    {
  32.       this.arrow._x = 275;
  33.    }
  34.    if(this.whichdude == 2)
  35.    {
  36.       this.arrow._x = 360;
  37.    }
  38. };
  39.