carpinteyrorfq
New Member
Using actionscript 3, can someone give an example how I can dynamically change the submenu items below? \[code\]<fxeclarations><fx:XMLList id="menuData" xmlns=""> <menuitem label="Column A"> <menuitem label="Item A.1"/> <menuitem label="Item A.2"/> </menuitem> <menuitem label="Column B"> <menuitem id="ItemB1" label="B.1"/> <menuitem type="separator"/> <menuitem label="Item B.2" type="check"/> <menuitem label="Item B.3" type="check"/> <menuitem label="Item B.4"> <menuitem label="SubItem B.4.1"/> <menuitem label="SubItem B.4.2"/> </menuitem> </menuitem> ...</fx:XMLList><fxeclarations>...<mx:MenuBar dataProvider="{menuData}" .../>\[/code\]For example, suppose we want to replace submenu items B.4.1 and B.4.2 with:\[code\]<menuitem label="SubItem abc"/><menuitem label="SubItem def"/><menuitem label="SubItem ghi"/>\[/code\]