[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Focus Manager over different MC's

Posted on 2008-11-05
6
Medium Priority
?
647 Views
Last Modified: 2013-11-11
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
0
Comment
Question by:jockmahon01
  • 4
  • 2
6 Comments
 
LVL 4

Expert Comment

by:Spy6
ID: 22884476
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
 

Author Comment

by:jockmahon01
ID: 22884533
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
 

Author Comment

by:jockmahon01
ID: 22884540
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Accepted Solution

by:
Spy6 earned 1500 total points
ID: 22884637
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
 

Author Comment

by:jockmahon01
ID: 24914253
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
 

Author Closing Comment

by:jockmahon01
ID: 31513443
my comment below is the correct solution
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses
Course of the Month18 days, 2 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question