1 Reply Latest reply on Jul 14, 2006 2:25 PM by mac_martine

    Image again in Button bar dataProvider

    TIPLVinay Level 1
      here is <mx:Script>

      [Embed(source='images/create.jpg')]
      public var createIcon:Class;

      ButtonBar Code:-

      <mx:ButtonBar iconField="@Icon" borderStyle="solid" buttonWidth="25" horizontalGap="2" verticalGap="0"">
      <mx:dataProvider>
      <mx:Array>
      <mx:Object id="image1" Icon="createIcon"/>
      <mx:Array>
      </mx:dataProvider>
      </mx:ButtonBar>

      Not shows the Image in button and the same is working fine when using image for Menubar

      The below code works fine :-

      <mx:ButtonBar borderStyle="solid" buttonWidth="25" horizontalGap="2" verticalGap="0"">
      <mx:dataProvider>
      <mx:Array>
      <mx:Object id="image1" icon="@Embed(source='images/create.jpg')"/>
      <mx:Array>
      </mx:dataProvider>
      </mx:ButtonBar>

      whts wrong in above code ...??