Hi All,

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 [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.

Reply via email to