[flexcoders] Accessing the sub-items of a Menu command

2008-06-02 Thread Marty Pitt
Hi all. This is a stupid question, but I can't work it out! Given the following XML and code, how am I supposed to access the Do Something menu item that is created? var xml:XML = new XML( root menuItem label=File menuItem label=Do Something / /menuItem /root ); var

Re: [flexcoders] Accessing the sub-items of a Menu command

2008-06-02 Thread Marty Pitt
From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf Of Marty Pitt Sent: Monday, June 02, 2008 6:11 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] Accessing the sub-items of a Menu command Hi all. This is a stupid question, but I can't work

Re: [flexcoders] Enable / Disable Flex Menu Items Programmatically using AS 3.0

2008-06-02 Thread Marty Pitt
this is extremely close to what I'm trying to do. (I posted here earlier today looking for a solution!) You can modify the dataProvider of the XML, setting the @enabled attribute, which will cause the menu to update. Eg.,. myMenuData..menuitem.(@id==menuUp)[EMAIL PROTECTED] = false