[FMX2004]Variables and File Paths

Ok guys well here it is. I am trying to make some way of addressing a movieclip but I want it to be able to change. Well here is the situation. I have a for loop which is creating a new movieclip instances until it is equal to or less than my arrays length. Well it makes all these and it names them test0 test1 test2 test3… and so on. Now I am trying to write a loop that address all of them, the only problelm is I dont know how to use a variable to address them, or some work around to do so. Sorry if this is confusing tell me if you find this to be confusing.

Welcome to kirupaforum=)

Can you post your code/.fla?

scotty(-:

Letz say you have 3 boxes in _root.
You can adress them like this


var1 = "box";
for (i=1;i<=3;i++){
_root[var+i]._alpha = 50;
//or
_root["box"+i]._x = 50+_root["box"+i]._width*i
}

And soo on. If this doesn’t help… post some code :wink:

Thnx virusescu that is what I was looking for… however i found it just before I came to check back here. Thanks anyways… that is the code I needed thanks a ton. I knew there had to be some way of doing it I just couldnt find it. Thnx again