;

PDA

Click to See Complete Forum and Search --> : tabIndex with two movie clips


imdumb
07-17-2008, 01:06 PM
Hello everyone,
I have two movie clips on one frame. Each movie clip has text boxes that I create and set a tab index numbers too. My problem is that I set the tab indexes the same on each of the movie clips I attach. When I press the tab key it may jump between the two movie clips.
How can I make each attached movie clip (private). So that the tab key stays in the same clip. Or do I have to maintain an index and assign each text box tabindex accordingly. Any ideas?

blanius
07-17-2008, 02:23 PM
Interesting question, I would think you'd have to set them in the root timeline. Not sure, A little testing would be needed to determine how it's handled.

Did you check on the AS2 docs from Adobe?

blanius
07-17-2008, 02:29 PM
I tested it the tab index will be in the order of the clips then the within the clip then the next clip in depth.

You can set anyway you wish.

In my test in the root time line I used the following actionscript

mc2.txt1.tabIndex=1;
mc2.txt2.tabIndex=2;
mc1.txt2.tabIndex=3;
mc1.txt1.tabIndex=4;

imdumb
07-17-2008, 02:35 PM
Did u try.
mc2.txt1.tabIndex=1;
mc2.txt2.tabIndex=2;
mc1.txt2.tabIndex=1;
mc1.txt1.tabIndex=2;

blanius
07-17-2008, 09:25 PM
you could do that as well but if you later add something else it could end up tabbing in between the two movie clips.

by default if you place mc1 on stage first then mc2 you would by default tab from mc1.tx1 -> mc1.txt2 -> mc2.txt1 -> mc2.txt2
I did it in the above message order to make it go in another order.

imdumb
07-18-2008, 08:15 AM
Thanks for assisting. I decided to create a global variable and increment my tabindex as needed.