So after playing around with this mxml, I've found that if I place the mxml
for the menubar within the main application mxml tag, then everything works.
However, if I put the menubar mxml in a separate file and include it within
the application mxml, then the sub-menu icons are not displayed. Is this a
Flex bug, or am I missing something?


D Unit wrote:
> 
> 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";
>                 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-tp15214090p15231873.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to