home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / smashout.swf / scripts / __Packages / Game / ModalDialogs / PongPause.as < prev    next >
Encoding:
Text File  |  2005-11-09  |  520 b   |  25 lines

  1. class Game.ModalDialogs.PongPause extends Game.PongModal
  2. {
  3.    var keyListener;
  4.    var bg_mc;
  5.    var screenName = "pause";
  6.    function PongPause()
  7.    {
  8.       super();
  9.       var controller = this;
  10.       this.keyListener = {onKeyUp:function()
  11.       {
  12.          if(Key.getCode() == 80)
  13.          {
  14.             return;
  15.          }
  16.          controller.close();
  17.       }};
  18.       Key.addListener(this.keyListener);
  19.       this.bg_mc.onRelease = function()
  20.       {
  21.          controller.close();
  22.       };
  23.    }
  24. }
  25.