Link to home
Start Free TrialLog in
Avatar of jockmahon01
jockmahon01Flag for United States of America

asked on

Focus Manager over different MC's

I have a app that has MC's with different components on it. i want the tabing to work from one MC to the next what is the best approach.
So far i have a key listener set up so that when the tab is pressed on the last component on thefirst MC it will call a function in the next MC which then uses setfocus to the first component on that MC, doesnt quite work,

is this the approach that i should take
Avatar of Spy6
Spy6

Hi!

Use tabindex on the components. It's simpler and doesn't require much code and it's always reliable.

http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000898.html
Avatar of jockmahon01

ASKER

yes i know of this, my problem is that the components are not all on the same MC, also the main form which has a few components on it has several child MC's that all have their own components on then, (iv using tab navigation, like in window Properties)
yes i know of this, my problem is that the components are not all on the same MC, also the main form which has a few components on it has several child MC's that all have their own components on then, (iv using tab navigation, like in window Properties)
ASKER CERTIFIED SOLUTION
Avatar of Spy6
Spy6

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Got this working with the following as long as the child mc dont have tabing

            tabChildren                     = true;
            mc1.tabChildren       = true;
            mc2.tabChildren   = true;
            mc3.tabChildren = true;
            tabEnabled                      = false;
      
            mc1..element1.tabIndex      = 1;
            mc2.element1.tabIndex           = 2;
            mc3.element1.tabIndex          = 3;
my comment below is the correct solution