pivotX是Sprite的属性
/*X轴 轴心点的位置,单位为像素,默认为0,轴心点会影响对象位置,缩放,旋转。/
anchorX是Component(extend Sprite)的属性
/*X轴锚点,值为0-1/
用法示例:
private function _centerDialog(dialog:Dialog):void {
dialog.x = Math.round(((_stage.width - dialog.width) >> 1) + dialog.pivotX);
dialog.y = Math.round(((_stage.height - dialog.height) >> 1) + dialog.pivotY);
}