Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows XP
Browser: Internet Explorer 6.x
Language Found: Japanese
Description
case : MXMLApplication
it works.(icon displays at "Top","Second","Third" menu)
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
[Embed(source="assets/g.gif")]
public var icon_g:Class;
]]
>
</mx:Script>
<mx:XML id="xmlData" format="e4x">
<root>
<menuitem label="Top" icon="icon_g" >
<menuitem label="Second" icon="icon_g" >
<menuitem label="Third" icon="icon_google" />
</menuitem>
</menuitem>
</root>
</mx:XML>
<mx:MenuBar id="mnb" dataProvider="
</mx:Application>
case : MXMLComponent
icon displays only top menu(label="Top").
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
[Embed(source="assets/g.gif")]
public var icon_g:Class;
]]
>
</mx:Script>
<mx:XML id="xmlData" format="e4x">
<root>
<menuitem label="Top" icon="icon_g" >
<menuitem label="Second" icon="icon_g" >
<menuitem label="Third" icon="icon_google" />
</menuitem>
</menuitem>
</root>
</mx:XML>
<mx:MenuBar id="mnb" dataProvider="{xmlData}
" labelField="@label" iconField="@icon" showRoot="false"/>
</mx:VBox>