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
jockmahon01Asked:
Who is Participating?
 
Spy6Connect With a Mentor Commented:
Please read the link I have sent, it should help you.

It doesn't matter if they are or not in the same mc. Just use the dot syntax to reach all of them and asign the tab index and it should work.

component1.field1.tabIndex = 1
component1.button1.tabIndex = 2
component2.subComponent1.field1.tabIndex = 3
component2.subMc1.subMc3.field1.tabIndex = 4
0
 
Spy6Commented:
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
0
 
jockmahon01Author Commented:
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)
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
jockmahon01Author Commented:
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)
0
 
jockmahon01Author Commented:
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;
0
 
jockmahon01Author Commented:
my comment below is the correct solution
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.