Как-то времени не было вникать в особенности работы с магическими числами, но может поможет вот это:

Код AS3:
public function createBox( scaleX:Number, scaleY:Number, rotation:Number=0, tx:Number=0, ty:Number=0 ):void
{
this.identity();
this.rotate(rotation);
this.scale(scaleX, scaleY);
this.tx = tx;
this.ty = ty;
}
public function createGradientBox( width:Number, height:Number, rotation:Number=0, tx:Number=0, ty:Number=0 ):void
{
this.createBox(width / 1638.4, height / 1638.4, rotation, tx + width / 2, ty + height / 2);
}
Взято из глубин playerglobal.swc -> flash.geom.Matrix