Adding icons to nativemenu items in air application
I have a native menu with items and it is displayed as a pop up menu, i would like to add icons to the native menu items in an air application using flex3. How can i do that? Thanks in 开发者_开发百科advance.
bagiHere is a pretty simple logic:
1) You can access core properties, like icon
or iconField
look http://blog.flexexamples.com/2008/01/24/displaying-icons-in-a-flex-popupbutton-control/
http://amarghosh.blogspot.com/2010/01/icons-in-flex-menubar.html
or
2) Override itemRenderer with your own, and set up images via data node, e.g. http://blog.flexexamples.com/2007/09/25/creating-a-custom-combobox-item-renderer-in-flex/
精彩评论