home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Puzzle / blockix.swf / scripts / DefineSprite_61_title_screen / frame_1 / DoAction.as
Text File  |  2008-09-26  |  441b  |  22 lines

  1. this.onEnterFrame = function()
  2. {
  3.    if(_root.game_running && _root.is_pause == false)
  4.    {
  5.       this._alpha = 0;
  6.    }
  7.    if(_root.game_running == false && _root.is_pause == false)
  8.    {
  9.       this._alpha = 100;
  10.       this.swapDepths(_root.getNextHighestDepth());
  11.    }
  12. };
  13. this.onPress = function()
  14. {
  15.    if(_root.game_running == false)
  16.    {
  17.       _root.lives = 3;
  18.       _root.start_game();
  19.       trace("clicked");
  20.    }
  21. };
  22.