I write a MenuBar component, but the change event of the MenuBar is not working while other event (like createComplete and rollOver) works!
I don't know what's the problem , will any one tell me why? Thanks! Following are pieces of related code: code creating the menuBar columnMenuBar=PopUpManager.createPopUp(this, ColumnMenuBar, false, undefined, true); columnMenuBar.addEventListener("mouseDownOutside",mx.utils.Delegate.create(this,mouseOutsideMenuBar)); ColumnMenuBar.mxml <mx:MenuBar xmlns:mx="http://www.macromedia.com/2003/mxml" creationComplete="createBar()" rollOver="rollOverMenu()" change="columnMenuBarHandler(event)" width="100" marginLeft="0"> <mx:Script> <![CDATA[ function rollOverMenu(){ trace("roling over the menu"); } function createBar(){ trace("!!!menubar created!"); } function columnMenuBarHandler(event) { trace("change event in menubar"); } ]]> </mx:Script> <mx:dataProvider> <mx:XML> <menuitem label="COLUMN UTILITIES"> <menuitem label="Insert Column" data="insert" /> <menuitem label="Expand Extract Column" data="expand" /> <menuitem label="Remove Column" data="remove" /> <menuitem type="separator" /> <menuitem label="Sort by Ascending" data="sortByAsc" /> <menuitem label="Sort by Descending" data="sortByDes" /> </menuitem> </mx:XML> </mx:dataProvider> </mx:MenuBar> ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/