You are missing a quotation mark in your dataProvider:

<item label="Options" icon="configure16/>

 

I think that is your problem because I can see an icon in the main menu
item and its submenus.

 

Joan

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of D Unit
Sent: Thursday, January 31, 2008 12:30 PM
To: [email protected]
Subject: [flexcoders] Menu icons not displayed

 


I am having a tough time getting icons to display within a drop down
Menu on
a Menubar.

I have a menu bar with the following MXML:

<mx:MenuBar
xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> "
labelField="@label"
iconField="@icon"
width="100%">
<mx:XMLList>
<item label="Application" icon="configure16">
<item label="Options" icon="configure16/>
<item type="separator"/>
<item label="Exit"/>
</item>......

'configure16' is an embedded image:

[Embed(source="../assets/icons_16/configure.png")]
public static const configure16:Class;

The icon is displayed correctly on the MenuBar (Application item), but
it is
not displayed at all on the drop down menu (Options item). How can I get
an
icon to display next to an entry on a drop down menu? 
-- 
View this message in context:
http://www.nabble.com/Menu-icons-not-displayed-tp15214090p15214090.html
<http://www.nabble.com/Menu-icons-not-displayed-tp15214090p15214090.html
> 
Sent from the FlexCoders mailing list archive at Nabble.com.

 

Reply via email to