3 Replies Latest reply on Jul 25, 2009 9:35 AM by SilentChris

    How can i display image in mx:TextArea Component?

    koalant Level 1
      I found display img tag in htmlText of mx:TextArea component is very difficult in Flex Air

      I new a simple air project in flex builder, put the code below in it, i put a glad.png file in the src folder, every thing is OK, when i run it, image cannot be displayed. why this happend, I search the google for the solution, it seems there is a bug in air, and told me to use mx:HTML coponent, but that component still can not display img tag.

      could any one help me with this?


      <mx:TextArea width="100%" height="100%">
      <mx:htmlText>
      <![CDATA[
      <a href=' http://www.adobe.com'><img src='glad.png'/></a>Click the image to go to the Adobe home page.
      ]]>
      </mx:htmlText>
      </mx:TextArea>