3 Replies Latest reply on Dec 15, 2010 9:47 PM by xchg.ca

    Displaying an Icon in ToggleButton in Flex 4.5SDK.

    xchg.ca Level 1

      Having troubles displaying an Icon in ToggleButton in Flex 4.5SDK beside the text, or just an icon. Icon suppose to be embedded, here is the code:


      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
              <!-- Place non-visual elements (e.g., services, value objects) here -->
          <s:ToggleButton label="test" icon="@Embed(source='available.png')" width="100" height="100" />