Hi. I want to duplicate a 10 by 400 horzontal bar down the entire screen on a 550 by 400 document and have each one change colors randomly. I have this so far:
this.attachMovie(‘square’, ‘square’, 1);
i=0;
square.duplicateMovieClip(“square”+i, i, {_x:0, _y:Math.random()*400});
myColor = Math.round( Math.random()*0xFFFFFF );
myColoredObject = new Color (_root.square);
myColoredObject.setRGB(myColor);
“square” is my horizontal bar of course. I’ve read the tutorials buy I’m still not exactly sure how duplicateMovieClip works. what determines how many times it is duplicated??
Then I’ll have to figure out how to get each one to move down 10 pixels it is duplicated so they are not just all on top of each other, I’m not really asking someone to figure that out for me, but a hint would be nice…
Thanks for any help in advance!