1 Replies - 1160 Views - Last Post: 01 July 2009 - 04:07 PM

#1 pioSko  Icon User is offline

  • still.dreaming
  • member icon

Reputation: 23
  • View blog
  • Posts: 1,888
  • Joined: 06-June 03

Enter key

Posted 22 March 2005 - 12:01 AM

Description: Executes function after user presses Enter key.
/* Replace 'this' with name of input movieClip (ie. button, text field)
   else use in main timeline as is. */

Key.removeListener(this);
this.onkeydown = function() {
   if (Key.isDown(Key.ENTER)) {
      // action here
   }
};
Key.addListener(this);

Is This A Good Question/Topic? 0
  • +

Replies To: Enter key

#2 golubic  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 0
  • Joined: 01-July 09

Re: Enter key

Posted 01 July 2009 - 04:07 PM


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1