|
-
tabIndex with two movie clips
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?
-
KoolMoves Moderator
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?
-
KoolMoves Moderator
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;
-
Did u try.
mc2.txt1.tabIndex=1;
mc2.txt2.tabIndex=2;
mc1.txt2.tabIndex=1;
mc1.txt1.tabIndex=2;
-
KoolMoves Moderator
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.
-
Thanks for assisting. I decided to create a global variable and increment my tabindex as needed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|