I have got one movieclip that is a square it is 20 x 20 the movieclip changes from black to white when you roll over it and remains white.
The problem i have is that i need 3000 of them and putting them in a grid format so the user can create there own black and white mosaic.
But when i do it only the newest square added to the stage changes colour i think i have gone down the wrong path and ive hit a dead end, please help!
This is my code (Which im 90% is all wrong):
stop();
var sqreArray:Array = new Array();
for (var i:int = numChildren - 0; i >= 3000; i++) {
var child:DisplayObject = getChildAt(i);
if (child.name == "sqre") {
sqreArray.push(child);
}
}
function sqreOver(event:MouseEvent):void {
sqre.gotoAndStop('over');
}
function sqreOut(event:MouseEvent):void {
sqre.gotoAndStop('out');
}
sqre.addEventListener(MouseEvent.ROLL_OVER, sqreOver);
sqre.addEventListener(MouseEvent.ROLL_OUT, sqreOut);