private function changeColor(event:MenuEvent):void{
trace(event.index + " " + event.type);
if(event.type == "itemRollOver"){
//I just rolled over a link
menu.getChildAt(event.index);
}else if(event.type == "itemRollOut"){
//I just rolled out of a link
menu.getChildAt(event.index);
}
}
]]>
</mx:Script>
<mx:MenuBar id="menu" width="1000" height="70" dataProvider="{menu_dp}" click="clickHandler(event)" itemRollOver="changeColor(event)" itemRollOut="changeColor(event)" />
Thanks in advance for all the help.
PS to the moderator: can we have a subforum for Flex posts?

New Topic/Question
Reply



MultiQuote


|