Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

ActionScript 3.0 Tutorial: Press Enter to Submit Forms or Trigger Events

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
6,382
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 12, 2010

Free Download - http://www.developphp.com/Flash_tutorials/show_tutorial.php?tid=519

Learn how to trigger already established events in your project using the keyboard class in Flash and actionscript 3.0

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 4 dislikes

Link to this comment:

Share to:

Uploader Comments (flashbuilding)

  • Sorry, but if they press ENTER i suppose they want to go to a new line in the big contact form don't you think??

    Great tutorial Adam, we really like 'em!

  • good point. This would be more for chat boxes, logins, etc... I use it on my site chatbox and login areas, people appreciate the functionality...

see all

All Comments (21)

Sign In or Sign Up now to post a comment!
  • Adam,

    Thank you for this basic tutorial, Since I am just starting to learn AS 3 these are a lot easier for me to understand. Please keep doing these great tutorials, I have learned so much from you.

    Eric

  • good one'

  • @RustyDoorknobs can u explain it, i keep getting errors -_-

  • this is the shortest tut flashbuilding made

  • This has a problem: what if you have multiple text boxes?

    Solution:

    Use the text input component:

    searchBox.addEventListener(Com­ponentEvent.ENTER, clickGoButton);

    function clickGoButton(e:ComponentEvent­){

    myBtn.dispatchEvent(new MouseEvent(MouseEvent.CLICK));

    }

  • @PersonalComputerHelp

    Yeah...well I thing this year it'll come out...

  • Best tutorials out there!

  • Aha! I didn't think of chats and logins yet!

    Indeed, that would work VERRY well on those type of things, excuse me for my small brains :D

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more