I have a number of instances of a movieClip on the stage in Flash. I would like to be able to add a dynamic variable to each. For example, I would like to number each instance.
I have tried giving each instance an instance name (eg. box1, box2) and writing the following code in the layer 1 > frame 1 code window
box1.number = 1;
box2.number = 2; etc.
or
box1["number"] = 1;
box2["number"] = 2;
but the variables are undefined when trying to access them in Flash builder.