I would suggest allowing Tabs to remain ignorant of each other and let the "parent" deal with the focus, because you might like to change it.

In my lazy world of radio-buttons that can only have on toggled on at once, I keep a reference to the currently toggled button. If I receive a click from a button and there is a current one, I untoggle that first, before toggling the clicked one and assigning it to the current reference.



On 16/03/2011 17:00, Mattheis, Erik (MIN-WSW) wrote:
I have a typical tabbed layout and am trying to figure out the simplest/best 
way to reset the focused state on the focused tab when another is clicked.

Classes:

Tab - contains graphics and a public variable referencing the MovieClip of the 
over state.

Header - creates tabs, adds event listeners, contains array of references to 
tabs and a function to loop through them and remove the over state child.

Is there a better way - to somehow add an event listener to each tab listening 
for a click on each other tab? Even if I don't know how many tabs there will be?

_ _ _
Erik Mattheis | Weber Shandwick
P: (952) 346.6610
M: (612) 377.2272
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to