/ Published in: ActionScript 3
A dynamic text field doesn't like to be set to bold (or italic, whatever). You can get around this issue by creating a text format in actionscript and setting that field's format to this newly-created one. This is only good for having a text field where all words in it share the same format (i.e. all words are bold).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var boldText:TextFormat = new TextFormat(); with (boldText) { //font = "Verdana"; //size = 9.8; //color = 0x000000; bold = true; } my_textfield_txt.setTextFormat(boldText);
URL: http://board.flashkit.com/board/showthread.php?t=180045