Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-18698

MenuBar cannot display icon when it is used as MXML Component.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • mx: Menu Bar
    • 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="

      {xmlData}" labelField="@label" iconField="@icon" showRoot="false"/>
      </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>

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: