Use img tag in TextField : HtmlText : TextField Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » TextField » HtmlText »

 

Use img tag in TextField


 

package{
  import flash.display.Sprite;
  import flash.text.*;  
  public class Main extends Sprite{
    public function Main(){
        var tContent:TextField = new TextField();

        tContent.htmlText = "A picture of a lake: <img id='mImage' width='180' height='120' align='center' vspace='0' hspace='0' src='http://www.navioo.com/asb/image2.jpg'>";
        addChild(tContent);
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo TextField
» HtmlText