6 Replies Latest reply on Jul 3, 2011 7:16 PM by Cool Wind

    TextArea in Flex Mobile 4.5 doesn't support image tag?

    Cool Wind

      Hi,

       

      I try to put an image in a TextArea by using the following code, but the image doesn't show up. I've tried using a "http://" absolute path, but it still not work. Please help, thanks!

       

      <fx:Script>

        <![CDATA[

          import spark.events.ViewNavigatorEvent;

          import mx.events.FlexEvent;

          import spark.components.supportClasses.StyleableTextField;

       

          protected function init(event:ViewNavigatorEvent):void {

            var html:String = "<p>Disney Pixar movie Cars</p><img src='assets/cars.png'>";

            StyleableTextField(infoText.textDisplay).htmlText = html;

          }

      ]]>

      </fx:Script>