
Код AS3:
import flash.display.*;
import flash.geom.*;
var bmpd:BitmapData = new BitmapData(2,2);
var rect1:Rectangle = new Rectangle(0,0,1,1);
bmpd.fillRect(rect1, 0x000000);
bmpd.fillRect(rect2);
bmp_fill_mc = this.addChild(new Sprite());
with (bmp_fill_mc.graphics) {
matrix = new Matrix();
matrix.rotate(Math.PI);
repeat = true;
smoothing = false;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, 600);
lineTo(600, 600);
lineTo(600, 0);
lineTo(0, 0);
endFill();
}
bmp_fill_mc.scaleX = 1;
bmp_fill_mc.scaleY = 1;
примерно так