PDA

View Full Version : setting tab order on form-MX


lehte
08-04-2003, 05:50 PM
Hi,
I have used flash for a few years, but I am fairly new as far as actionscript goes. I've used play, stop, goto, geturl.

I am trying to create a form in flash. I recently downloaded MX because I read I could not control tab order in FLash 5 but I could in MX. I have been looking all day and I can't figure out how. I can find tabIndex and tabEnable but it won't let me add actions to my text input field and even if it did, I'm not sure what else I need to do. Am i missing something?:confused:

Any help would be appreciated, Thanks
Lehte

annexion
08-04-2003, 06:09 PM
You don't need to add actions to your textfield. Just add your tab index code to the main stage.

lehte
08-04-2003, 08:00 PM
Thanks

So If i just click in the background and then go to actions, it wants to put it in a frame, is that where it goes?

And once i get there do I add tabEnabled or tabIndex? And how do I tell it which goes first? Is there maybe a tutarial or something somewhere. Even the info I got off of macromedia didn't help me.

Maybe I am over my head. It seems like such a simple thing. Is it really hard to do?

:confused:

Thanks
lehte

annexion
08-04-2003, 08:14 PM
This may be of some use to you:

http://www.actionscript.org/forums/showthread.php3?s=&threadid=29233

Also, add the following thread to your favorites. It's a wealth of information and help from our own CyanBlue.

http://www.actionscript.org/forums/showthread.php3?s=&threadid=31471

Good luck.

lehte
08-04-2003, 08:45 PM
I think this is just what I needed.

took your advice and bookmarked the list, wow
thanks

Lehte

lehte
08-04-2003, 09:24 PM
now when i preview my movie what ever I named the input text comes up in the form with extra stuff


ex: _level0.name

how do I avoid this?

Lehte

annexion
08-04-2003, 10:30 PM
Can you upload a zipped .fla file? I'd be glad to help you.

lehte
08-04-2003, 11:11 PM
I will email it to you I hope that is ok.
Thanks
lehte

annexion
08-05-2003, 02:25 AM
You should have a pm waiting for you.

Good luck.

raphaelc4
08-27-2003, 03:09 PM
another question!


I have a home.swf which is the main movie of my site. It loads 3 diferent swfs at the same time. On 2 swf i have 2 forms. And when the 2 forms appears at the same time, i cant order the Tab index!

how can i do? Also there are 2 Send Buttons, the tab index doesnt work with them.

You can see what i'm saying here:
https://www.redetv.com.br/projetosoff/servicos/eparceiros/
Its in portuguese, so, clique on FALE CONOSCO at left side and choose one of the Combo options at the right side. Try to use the Tab...


content_left_mc.nome_txt.tabIndex = 1;
content_left_mc.ddd_txt.tabIndex = 2;
content_left_mc.tel_txt.tabIndex = 3;
content_left_mc.email_txt.tabIndex = 4;
content_left_mc.message_txt.tabIndex = 5;
content_left_mc.enviar_bt.tabIndex = 6;
content_right_mc.cnpj_txt.tabIndex = 7;
content_right_mc.user_txt.tabIndex = 8;
content_right_mc.pwd_txt.tabIndex = 9;
content_right_mc.ok_bt.tabIndex = 10;


thanks!!

Tsala
08-30-2003, 08:57 AM
raphaelc4 sorry I didn't understand your site but it is possible to include buttons in the tab index - just give them instance names, then you can just add them in with the textfields

myText.tabIndex = 1;
myOtherText.tabIndex = 2;
myButton.tabIndex = 3;

If you wish to remove the yellow box that appears round the button when it is tabbed to just add the line

_focusrect = false;

Also, you may wish to know that it is possible to set the cursor inside the first textbox using

Selection.setFocus(instanceNameOfTextField);

as a frame action in the frame that contains the textfields.

Hope this helps.

raphaelc4
09-01-2003, 08:25 AM
Hey Tsala, thanks for your reply!

This yellow boxes are so ugly! heeheh tks!

I will explain what is problem again: I have 2 diferent Forms appearing at the same time! And I ordered the tabindex starting from the form at Left and continuing at the form at right: You can see it in my code, The first form goes at tabindex 6, and the form at right starts on tabindex 7. But it doesnts working well

I will try to rewrite and use this hints that you gave again! thanks man!

content_left_mc.nome_txt.tabIndex = 1;
content_left_mc.ddd_txt.tabIndex = 2;
content_left_mc.tel_txt.tabIndex = 3;
content_left_mc.email_txt.tabIndex = 4;
content_left_mc.message_txt.tabIndex = 5;
content_left_mc.enviar_bt.tabIndex = 6;
content_right_mc.cnpj_txt.tabIndex = 7;
content_right_mc.user_txt.tabIndex = 8;
content_right_mc.pwd_txt.tabIndex = 9;
content_right_mc.ok_bt.tabIndex = 10;

Tsala
09-01-2003, 10:08 AM
raphaelc4, I understand your problem now but I'm sorry I can't help you because I've never made a .swf within a .swf. I've only set the tab order in one .swf

There may be a solution if you use the correct path to each textfield or button, but I'm just a newbie so I'm not sure. I hope someone else can help you.

Although I don't understand your site, I must say that it looks great. :)