Use html text in TextField
package { import flash.display.Sprite; import flash.text.TextField; public class Main extends Sprite { public function Main( ) { var field:TextField = new TextField( ); htmlCode = "<i>italicized text</i>"; sourceHTML.text = htmlCode; renderedHTML.htmlText = htmlCode; addChild(field); } } }