Sets the position of the object taking into consideration the object's origin
external void setPositionByOrigin(Point pos, String originX, String originY);