
Код AS3:
var t:Sprite = new Sprite();
this.addChild(t);
var n:Graphics = t.graphics;
n.beginFill(0xffffff,1);
n.lineStyle(1, 0x000000);
n.drawRect(0, 0, 31, 31);
var tempBitmap:BitmapData = new BitmapData(32,32,false,0x000000);
tempBitmap.draw(t);
this.removeChild(t);
Феншуйствую! =)