Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flash form flash form 2

Status
Not open for further replies.

renartbrazil

Technical User
Dec 12, 2003
42
US
Two questions here. I have this in a Flash form using PHP to send the data to an email address.
How can I get it to also be able to TAB backwards like Shift+Tab does in most programs?
Also, can anyone tell me if there is something more code) that can be added to this that 'if the firstname text box does not contain anything' then play a movie clip popup type of thing stating to fill out that field?


on (keyPress "<Tab>") {
if (Selection.getFocus() == "_level0.firstname") {
Selection.setFocus("_level0.lastname");
} else if (Selection.getFocus()== "_level0.lastname") {
Selection.setFocus("_level0.cr1");
} else if (Selection.getFocus() == "_level0.cr1") {
Selection.setFocus("_level0.b1");
} else if (Selection.getFocus() == "_level0.b1") {
Selection.setFocus("_level0.m1");
 
If the fields are all in the same clip you should be able to tab (or shift+tab) through them anyway. You shouldn't have to use a <tab> event handler.
 
I did not know that. Will give it a try tonight. In my mind it seems that at the time that I first used this method that it was not tabbing then someone told me about TAB. Thanks pix
 
Raises a new thought. I have one input box that I would like to have 'Type Here' or something in it already, but when it is selected it disappears. You know?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top