home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / arixtetris.swf / scripts / frame_54 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  407 b   |  23 lines

  1. function catchKey()
  2. {
  3.    var _loc2_ = Key.getCode();
  4.    Key.removeListener(this);
  5.    var _loc0_ = null;
  6.    if((_loc0_ = _loc2_) !== 66)
  7.    {
  8.       Key.addListener(this);
  9.    }
  10.    else
  11.    {
  12.       gotoAndPlay(61);
  13.    }
  14. }
  15. textOptions.btnBack.onPress = function()
  16. {
  17.    this.enabled = false;
  18.    gotoAndPlay(61);
  19. };
  20. Key.removeListener(this);
  21. Key.addListener(this);
  22. this.onKeyDown = catchKey;
  23.