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"
                             xmlns:s="library://ns.adobe.com/flex/spark"
                             xmlns:mx="library://ns.adobe.com/flex/mx">
          <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
          <s:ToggleButton label="test" icon="@Embed(source='available.png')" width="100" height="100" />
      </s:WindowedApplication>