A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: tabIndex with two movie clips

  1. #1
    Senior Member
    Join Date
    Dec 2006
    Location
    Jax, FL
    Posts
    110

    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?

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    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?

  3. #3
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    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;

  4. #4
    Senior Member
    Join Date
    Dec 2006
    Location
    Jax, FL
    Posts
    110
    Did u try.
    mc2.txt1.tabIndex=1;
    mc2.txt2.tabIndex=2;
    mc1.txt2.tabIndex=1;
    mc1.txt1.tabIndex=2;

  5. #5
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    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.

  6. #6
    Senior Member
    Join Date
    Dec 2006
    Location
    Jax, FL
    Posts
    110
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center