Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-14-2004, 12:32 AM   #1
TheBuzz
Registered User
 
Join Date: Nov 2003
Location: Fresno, Ca
Posts: 119
Send a message via ICQ to TheBuzz Send a message via AIM to TheBuzz Send a message via Yahoo to TheBuzz
Default Ording Text fields with Focus()

I have a flash form that has about 20 text fields and they are completely out of order when I tab through them. I noticed if I start from the bottom they are mostly in order going backward, but thats besides the point. My form is inside a rather large MC. And I have been messing with focus, to try and put them in order when the Tab key is pressed.

I have tried this lately, on top of the components themselves.

PHP Code:
onClipEvent (enterFrame) {
      if(
Key.isDown(Key.TAB)) {
             
_parent.Textname.setFocus(_parent.Textname1)
      }

But this doesn't seem to work. If anyone has any suggestions they would be appreciated.

Thanks, Buzz
TheBuzz is offline   Reply With Quote
Old 04-14-2004, 08:14 AM   #2
emergency_pants
Today I smell of toast
 
Join Date: Dec 2002
Location: London, UK
Posts: 1,053
Default

You can use...

TextField.tabIndex = number;

That should do the trick. Flash will use this as priority over any swf structures you have.
__________________
Cheers,

Simon.
emergency_pants is offline   Reply With Quote
Old 04-15-2004, 06:00 PM   #3
TheBuzz
Registered User
 
Join Date: Nov 2003
Location: Fresno, Ca
Posts: 119
Send a message via ICQ to TheBuzz Send a message via AIM to TheBuzz Send a message via Yahoo to TheBuzz
Default

Thanks a million,
it worked like a charm. Finally is in the order it should be.
TheBuzz is offline   Reply With Quote
Reply


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 05:35 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.