Hi All,
I need help on a issue. How to disable menuitem(s) of a menu.
The code is as follows:
private function function1():void
{
Menu = new Menu();
MenuItem = new Array();
MenuItem [0] = "Task 1";
MenuItem [1] = "Task2";
Menu .addEventListener("itemClick", menuSelectHandler);
Menu.dataProvider = MenuItem;
popupbutton.popUp = Menu;
}
....
<mx:PopUpButton id="popupbutton" openAlways="true"
creationComplete="function1()" />
Here, when menuitem Task1 is selected, Task2 must be disabled
(greyout) (just like button.disable=true) and vice versa.
Thanks,
Pradeep
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---