PDA

View Full Version : Variable in a text field


Binbag
02-17-2003, 02:15 PM
This is a really dumb question but it's been a busy day.

Have a variable "correctAnswers" in a flash movie. Everytime there is a correct answer it ads one to "correctAnswers".

At the end of the movie there is a Dymanic Text Box "correctNumber"
On the same frame the actionscript

correctNumber==correctAnswers;

The list variable when testing the movie shows "correcctNumber" and "correctAnswers" to be working, but nothing appear in my textbox. Am I doing this correctly.

Help appreciated........

JGizmo
02-17-2003, 02:53 PM
Becareful with textfield's name or textfield's variable name:

I guess you may try this:

correctNumber.text = correctAnswers;

Asumme correctNumber is the name of that textfield and correctAnswers is a variable.

Regards
John