Ok I am having some small problems with Arrays and movie clips. in my array I have my movie clips names, now when i press on them they work fine, but my problem is that when i add 2 or more movie clip names to my array my array(i) comes back as undefined. I dont know why this happens…If someone could please help me that would be great. :).
myArray = new Array();
myArray = ["MC_0", "MC_1"];
for (i=0; i<= myArray.length -1; i++) {
trace(eval(myArray*));
eval(myArray*).onPress = function() {
myX = eval(myArray.toString(i))._x;
startDrag(this,true);
}
eval(myArray*).onRelease = function() {
stopDrag();
eval(myArray.toString(i))._x = myX;
}
}
This is what I have so far.
Thanks again