
Код AS3:
import flash.display.*;
import flash.text.*;
import flash.events.*;
parse_btn.addEventListener(MouseEvent.CLICK,onParse);
function onParse(e:MouseEvent):void {
tip_tf.htmlText=input_tf.text;
//var tf:TextFormat=new TextFormat("Lato Bold",16,0x4E3129);
//tip_tf.setTextFormat(tf, 0, 10);
//tf=new TextFormat("Lato Italic",16,0x4E3129);
//tip_tf.setTextFormat(tf, 10, 20);
}
stage.focus=input_tf;
stage.scaleMode=StageScaleMode.NO_SCALE;
//tip_tf.condenseWhite=true;
/*
<font color="#FF0000" size="20">header</font>
text text text text text text
image:
<img src="https://dl.dropboxusercontent.com/u/68778662/icon.jpg" width="200" height="200">
<img src="'http://88.212.210.84:5689/news/img/news.jpg' width='173' height='120'>
Then click the <b>Next</b> or the <b>Previous</b> buttons to highlight pieces. Also you can put selected pieces back in the tray. Or undo moves.
*/
input_tf.text="";
var fonts:Array = ( Font.enumerateFonts() );
var str:String="";
for each( var fo in fonts ){
//trace ( fo.fontName ,":", fo.fontStyle )
str+="name:"+fo.fontName+", style:"+fo.fontStyle+"\n";
}
fonts_tf.text=str;