Flash 8, I have some XML creating a few simple arrays. These pull some movie clips onto the stage with incremented names: product1, product2 and so on.
Inside these clips I have some code that is supposed to pull data from the arrays and put that data into text fields.
The code goes like this:
whichclip = this;
trace ("whichclip is this? = " + whichclip); - output: whichclip is this? = _level0.product1
var temp:String = whichclip;
var temp:String = temp.toString();
char_pos = ((temp.length)-1);
lastpos = temp.substr(-1,1);
trace (lastpos); - output: ] - :to: why a bracket?
– end code
Shouldn’t this last output be the number 1? I want to use this number to call the correct node for each clip, and therefore the correct data associated. Any ideas? thanks, John