|
Hello, I have a menu bar in my application and I am
trying to not hard code the fact that the forth menu item is the tools menu
that I need to dynamically set the menu items on. Instead I would like to be
able to loop through all the MenuBarItems and look at their names to find the
one that is labeled tools. I have tried a ton of different things but have
been unsuccessful in being able to find the right syntax to get that label. This is what I currently have. for (var i:Number=0; i<5 ; i++) { var currentMenu:Menu = theMenuBar.getMenuAt(i); mx.core.Application.alert(currentMenu.id); mx.core.Application.alert(currentMenu.value.toString()); } Any suggestion would be much appreciated. Thanks Jeff -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com ---- LSpots keywords ?> ---- HM ADS ?> YAHOO! GROUPS LINKS
|
- [flexcoders] MenuBarItem label. Jeff Krueger
- RE: [flexcoders] MenuBarItem label. Matt Chotin
- RE: [flexcoders] MenuBarItem label. Jeff Krueger

