PDA

View Full Version : Dynamic Text Box Var question


piratefish
12-04-2005, 01:24 AM
So I have my dynamic text box all set up. I understand placement of a text box and all that jazz (such as if it's on the main timeline all the variables can be considered to have a _root in front of them already) but I'm having troubles with that very same thing.

I have my text box set up with the Var: being scores[0] which references a certain part of an Array. The array is located on the main timeline and even in the same frame!

So my question boils down to is it possible to reference arrays in the Var section of the Text Box properties or not?

Thanks for the help.

Alphasnail
12-05-2005, 02:52 PM
I've never been able to get an array reference to work in the Var field of a dynamic text field. Apparently, however, the use of the Var field for text is depreciated. It's OK, as it’s nearly just as easy to use:
scores_txt.text = scores_array[2]

piratefish
12-06-2005, 02:14 AM
Argh! I settled for the suggested method but I'd still like a 100% confirmation that I cannot use a specific part of an array for the Var feature in dynamic text boxes.

CyanBlue
12-06-2005, 02:30 AM
I am sure this won't help you at all, but I just wanted to say that you should not use Variable in the TextField at all because it won't be available in AS 3.0... ;)

piratefish
12-06-2005, 11:50 PM
I am sure this won't help you at all, but I just wanted to say that you should not use Variable in the TextField at all because it won't be available in AS 3.0... ;)

You sir, are an inspiration to all of mankind :)