hey everyone,
Here is my code:
for(i=0;i<=12;i++){
myCounter = “model” + i;
model.duplicateMovieClip(myCounter, i);
model._x = Math.round(Math.random() * Stage.width);
model._alpha = Math.round(Math.random() * 100);
model._xscale = Math.round(Math.random() * 200);
model.onRollOver = function() {
myColor = Math.round(Math.random() * 0xFFFFFF);
myColorObject = new Color(model);
myColorObject.setRGB(myColor);
model.onRollOut = function(){
myColorObject.setRGB(0x999999);
}
}
}
Everything works ok, but I was wondering why when I change model._x to myCounter._x the code doesn’t work. instead of targeting the original clip I’m targeting the duplicated clips but for some reason it doesn’t work at all. Same thing happens when I try and add the roll over function to the duplicated instances, so instead of model.onRollOver I would like myCounter.onRollOver but it won’t work. If anyone could help me it would be great, I’m just trying to figure out what the difference is. Thanks A Lot
Kyle
Happy New Year!!!