
Код AS3:
var sp:Sprite = new Sprite();
addChild(sp);
var sh:Shape = new Shape();
sh.graphics.beginFill(0xFFFFFF);
sh.graphics.drawRect(0,0,20,20);
sh.graphics.endFill();
sp.addChild(sh);
var sh1:Shape = new Shape();
sh1.graphics.beginFill(0x000000);
sh1.graphics.drawRect(0,0,20,20);
sh1.graphics.endFill();
sh1.x = sh1.y = 20;
sp.addChild(sh1);
/*for (var i = 0; i< wi; i++) {
for (var j=0; j< he; j++) {
... // что то сдесь чтобы продублировать наш первый самый sp
addChild(); // а внутри что то типа sp+i+j
}
}*/
Вот такой вопрос, суть в комментах. нужно продубоировать в цикле sp