1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| var monFormat:TextFormat;
monFormat= new TextFormat();
with (monFormat) {
font = "Verdana";
size = 14;
align = "left";
leading=-2;
}
qst=this.createEmptyMovieClip("Qst",this.getNextHighestDepth());
qst.createTextField ("Text" , qst.getNextHighestDepth(), 100, 100, 400, 50);
with (qst.Text) {
wordWrap = true;
type="dynamic";
textColor = "0x000000" ;
html=true;
selectable = false;
border = false;
multiline =true;
embedFonts=true;
}
qst.Text.htmlText = "<b>Gras</b> texte";
qst.Text.setTextFormat(monFormat); |
Partager