Groups | Blog | Home
all groups > flash actionscript > march 2007 >

flash actionscript : format of a dynamic text field lost when the value is changed


kglad
3/18/2007 7:34:18 PM
try:



..type = "dynamic";
..html = true;

var TextFormat = new TextFormat();
set some formats
..setNewTextFormat(TextFormat)

aa
3/18/2007 9:53:38 PM
I have a text filed created using createTextField() and ist properties set
this way:
..type = "dynamic";
..html = true;
..text = some_variable;
var TextFormat = new TextFormat();
set some formats
..setTextFormat(TextFormat)

It works fine - it shows the initial value of some_variable (which is a
number) formated as I wanted it.
However as soon as some_variable is incremented (++) by some other function
(which has no operatoprs affecting formastting), the format of this field is
lost.

Where shall I look for an error to?

AddThis Social Bookmark Button