Make the text font italic : HtmlText : TextField Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » TextField » HtmlText »

 

Make the text font italic


 

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

        tArticle.multiline = true;
        tArticle.wordWrap = true;
        var sTempHTML:String = "<B>Bold text</B>";
        sTempHTML += "<I>Italic text</I>";
        tArticle.htmlText = sTempHTML;
        addChild(tArticle);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo TextField
» HtmlText