I need to change the origin point that scaling is done by but the origin property doesn't seem to work.
Here's the code.
var transformManager:TransformManager = new TransformManager({constrainScale: true});
var item:Sprite = new Sprite();
item.graphics.beginFill(0xFF00FF,1);
item.graphics.drawRect(0,0,100,100);
addChild(item);
var transformItem:TransformItem = transformManager.addItem(item);
transformItem.origin = new Point(item.width/2,item.height/2);
If I drag a corner it should resize and position itself so that the registration point stays in the same point, not that the corner that I am dragging is pulled out.
I saw another post here about it not working and someone tweening to the location they need. Is this really the only work around? Is it that origin doesn't work or am I trying to use origin as something that it is not? Is there another way to fix this issue.