Вот код написал для создания фона в шахматную доску.
Он мне выдает что код слишком тормозит ролик и не компилит его.
Вот сам код.

Код:
var thisy:Number = (-System.capabilities.screenResolutionY/2);
var thisx:Number = (-System.capabilities.screenResolutionX/2);
for (thisy=(-System.capabilities.screenResolutionY/2); thisy<System.capabilities.screenResolutionY/2; thisy += 2) {
for (thisx=(-System.capabilities.screenResolutionX/2); thisx<System.capabilities.screenResolutionX/2; thisx += 4) {
var mov:MovieClip = this.createEmptyMovieClip("rect", this.getNextHighestDepth());
mov.beginFill(0x626262);
mov.moveTo(thisx, thisy);
mov.lineTo(thisx+2, thisy);
mov.lineTo(thisx+2, thisy+2);
mov.lineTo(thisx, thisy+2);
mov.lineTo(thisx, thisy);
mov.endFill();
mov.cacheAsBitmap = true;
var mov2:MovieClip = this.createEmptyMovieClip("rect2", this.getNextHighestDepth());
mov2.beginFill(0x5A566D);
mov2.moveTo(thisx+2, thisy);
mov2.lineTo(thisx+4, thisy);
mov2.lineTo(thisx+4, thisy+2);
mov2.lineTo(thisx+2, thisy+2);
mov2.lineTo(thisx+2, thisy);
mov2.endFill();
mov2.cacheAsBitmap = true;
}
}
this.cacheAsBitmap = true;