PDA

View Full Version : PLease help, i want to change font color of dynamic text field at runtime


Presile
09-16-2003, 11:04 PM
please tell me how to dynamically change dynamic text field at runtime.
tks

farafiro
09-17-2003, 10:12 AM
Presile
welcome to the forums//creating our text field
_root.createTextField("test", 10, 0, 0, 300, 20);
with (test) {
border = true;
text = "any text can go here .....";
}
//making our format thingie
txtForm = new TextFormat();
txtForm.color = 0x336699;
_root.onMouseDown = function(){
test.setTextFormat(txtForm)
}