3 Replies Latest reply on Feb 22, 2008 2:33 PM by ntsiii

    Compress this code into a button?

    jefflemon Level 1
      I have this code:

      <mx:ToggleButtonBar id="toggleButtonBar"
      itemClick="captureImg(event.item.data);" width="72" height="21" x="338" y="411">
      <mx:dataProvider>
      <mx:Array>

      <mx:Object label="SAVE" data="{pngEnc}" />
      </mx:Array>
      </mx:dataProvider>
      </mx:ToggleButtonBar>


      But I want teh same functionaility from just a buton, how can I do it?