Hi everybody!
I just want to create a grid, but I don’t know which is the problem. this is the script:
MovieClip.prototype.drawRect = function(w, h) {
this.beginFill(0x006699, 100);
this.moveTo(0, 0);
this.lineTo(0+w, 0);
this.lineTo(0+w, 0+h);
this.lineTo(0, 0+h);
this.lineTo(0, 0);
this.endFill();
};
gridx = 30;
gridy = 30;
depth = 0;
for (i=0; i<10; i++) {
for (j=0; j<10; j++) {
var mc = this.createEmptyMovieClip(“mcc”+depth, depth);
}
mc.lineStyle(0.25, 0x66CCFF, 100);
mc.drawRect(10, 10);
mc._x = igridx;
mc._y = jgridy;
depth++;
}
Hope somebody can help me… please!
Thanks in advanced! :te: