I have a menu(on a right click) for a component in my app. I need to
italicise one of the menu item.
Here is the code that i am using:
#############################################
var myMenu:Menu = null;
var menuData:Array = null;
public function constructor(){
menuValue1 = "Alpha";
menuValue2 = "Beta";
menuValue3 = "Charlie"
menuValue4 = "Delta";
menuValue5 = "Echo";
menuData = [ {label: menuValue1, icon:icon1},
{label: menuValue2, icon:icon2},
{label: menuValue3, icon:icon3},
{label: menuValue4, icon:icon4},
{label: menuValue5, icon:icon5}
];
myMenu = Menu.createMenu(null, menuData, false);
}
public function handleRightClick():void{
myMenu.hide();
myMenu.show(x, y);
myMenu.addEventListener(MenuEvent.ITEM_CLICK,
handleMenuSelection);
}
#############################################
In the above example, i need to italicise menuValue3 ie, 'Charlie'.
Please help me in this regard.
Thanks,
Vijendran
--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to flex_...@googlegroups.com.
To unsubscribe from this group, send email to flex_india+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.
> > flex_india+...@googlegroups.com<flex_india%2Bunsu...@googlegroups.com>