var mtrx:Matrix = new Matrix(); mtrx.translate( -rectWidth / 2, -rectHeight / 2); newSprite.graphics.beginBitmapFill(bitmap, mtrx, true, true);