I am using MX Professional 2004. I have created a movie using actionscript to place movieclips on the stage. It places dots randomly around the screen. I want to put numbers on the dot. I have a for loop that goes through the array (reorder) that holds all of the dots that are movieclips. The number I want to put on the dot is the element of the array number plus 1. I created a movieclip which is a dynamic text field. It has an instance name of theNumber. The movieclip identifier is nc. If I put “a” inside the parenthesis [t.theNumber.text = string(“a”);] an a will show up inside all of the dots. As the variable ‘a’ nothing shows up in the dots. Any thoughts on what might be the problem with my script.
Thanks in advance for the help … Michael
function assignNum(){
for (i=0;i<reorder.length;i++){
var t = attachMovie(“nc”,“nc”+getNextHighestDepth(),getNextHighestDepth());
a = String(i+1);
t.theNumber.text = string(a);
t._x = this[reorder*]._x;
t._y = this[reorder*]._y;
}
}