Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-06-2004, 12:41 PM   #1
Registered User
Join Date: Sep 2004
Posts: 20
Default Simple (?!) login button press/key press issue

Can anyone have a look at this situation and tell me of an easy way to implement it. Basically, I want the user to be able to enter some text, (username) then either click the button OR press enter. If the field is empty they should get the "Please type..." message. Ive tried a few ways, but I can't see whats going wrong. Many thanks, D
Attached Files
File Type: zip problemcode.zip (5.2 KB, 178 views)
delux is offline   Reply With Quote
Old 10-07-2004, 12:53 AM   #2
Registered User
Join Date: Jul 2003
Posts: 257


Can't open your fla, but it go's something like this:

_root.bttn.onRelease = function(){

myinput.text = "Please type..."


Then add a listener for the enter key:

ear = []
ear.onKeyDown = function(){


Will need to check the syntax on that because it is just off the top of my head... but that is the general idea

curryjon51 is offline   Reply With Quote
Old 10-07-2004, 08:06 AM   #3
Registered User
Join Date: Sep 2004
Posts: 20

Thanks man, I've looked at it a bit since then and came up with something along the lines of your idea. That should help me solve it, cheers, D
delux is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 10:13 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.