I think you can use getChildAt() to access each Button in the ToggleButtonBar. Then use addEventListener() to put rollOver and rollOut handlers on each Button. - Gordon
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Guillermo Villasana Sent: Tuesday, September 25, 2007 2:51 PM To: [email protected] Subject: Re: [flexcoders] Is there a mouseOverIndex? Here is what I am trying to do: 1)I have the ToggleButton Bar that when I click on each button it will display the content of a viewstack. 2)if I move the Mouse Over a Button in the ToggleButtonBar I want to show another content that is related to the button that the mouse is over is like a Menu and a subMenu Menu1 Menu2 Menu3 |---> (on mouse over) show submenu of Menu2(submenu is a canvas with information related to Menu2) Menu1 Menu2 Menu3 |---> (on mouse over) show submenu of Menu3(submenu is a canvas with information related to Menu3) I hope this is more clear. Thanks Gordon Smith wrote: > > > I want to change the nav_bloque1.selectedIndex to > nav_bloque1.mouseOverIndex > > or something like that so I can do some other functions with that index. > > I having problems understanding what you're trying to do. > > - Gordon > > ---------------------------------------------------------- > *From:* [email protected] <mailto:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] > *On Behalf Of *Guillermo Villasana > *Sent:* Tuesday, September 25, 2007 1:46 PM > *To:* [email protected] <mailto:flexcoders%40yahoogroups.com> > *Subject:* Re: [flexcoders] Is there a mouseOverIndex? > > Anyone, any thoughts? > None? > Thanks > > Guillermo Villasana wrote: > > > > Hi again, well sorry about the other post that get duplicated, but as I > > asked before, is there a way to get the index of a button in a > > togglebuttonbar when you just go over the button? > > here is my code > > <!-- code --> > > > > <mx:ToggleButtonBar id="nav_bloque1" alpha="0.5" > > useHandCursor= > > > > "true" buttonMode="true" > > itemClick="ChangeContent(nav_bloque1.selectedIndex);" > > > > > mouseOver="handleMouseEvent(event);getSubnav(nav_bloque1.selectedIndex); " > > height="26" minWidth="1000" /> > > > > <!-- code --> > > > > I want to change the nav_bloque1.selectedIndex to > > nav_bloque1.mouseOverIndex or something like that so I can do some other > > functions with that index. I tried to use var > > objArray:Array=getObjectsUnderPoint(pt); but I don't understand how to > > get the button as I get a lot of objects with a full path. > > > > Thanks > > Terius > > > > > >

