home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / batman_cobble.swf / scripts / frame_22 / DoAction_2.as next >
Encoding:
Text File  |  2006-06-13  |  807 b   |  37 lines

  1. _root.game.checkpoint_1a_01.onEnterFrame = function()
  2. {
  3.    if(this.hitTest(_root.game.player))
  4.    {
  5.       _root.overlay.gotoAndPlay("wrongway");
  6.    }
  7. };
  8. _root.game.checkpoint_1a_02.onEnterFrame = function()
  9. {
  10.    if(this.hitTest(_root.game.player))
  11.    {
  12.       _root.overlay.gotoAndPlay("glidedown");
  13.    }
  14. };
  15. _root.game.checkpoint_1a_03.onEnterFrame = function()
  16. {
  17.    if(this.hitTest(_root.game.player))
  18.    {
  19.       _root.overlay.gotoAndPlay("glidedown");
  20.    }
  21. };
  22. _root.game.checkpoint_1a_04.onEnterFrame = function()
  23. {
  24.    if(this.hitTest(_root.game.player))
  25.    {
  26.       _root.fadeout.play();
  27.    }
  28. };
  29. _root.game.level.pit.onEnterFrame = function()
  30. {
  31.    if(this.hitTest(_root.game.player))
  32.    {
  33.       _root.overlay.gotoAndPlay("gameover");
  34.       _root.fadeout.play();
  35.    }
  36. };
  37.