Page 1 of 1

Change dynamic textfield value in Flash [AS3]

Posted: Mon May 19, 2008 1:55 pm
by Sindarin
With actionscript 2, I would just create a new dynamic textfield, set it to variable testvar and simply write at a frame or button press,

Code: Select all

var testvar = testvar+2
That would increase the variable +2 each time and the textfield would just show it.

How I can achieve the same effect with Actionscript 3? I am well aware that components like textarea cannot have actionscript assigned to them anymore.

Re: Change dynamic textfield value in Flash [AS3]

Posted: Tue May 27, 2008 12:44 pm
by Jonah Bron
Maybe I don't understand, but I believe you have to use the text property (dynamic_text_field.text)