9 Replies Latest reply on Apr 18, 2007 2:55 PM by kglad

    Escape key on press go to (frame)

    Juan_Valdez
      I have a flash presentation that has a rather long opening so I want to place an event listener that lets me hit the escape key and gotoAndPlay frame (378), I get a syntax error, any one have an idea what the problem is?

      var hotkey:Object = new Object();
      hotkey.keyPress"<Space>" = function(eventObject:Object){
      this.gotoAndPlay(378)
      }
      this.addListener(hotkey);