Share Posted April 14, 2010 Is it possible to set the registration point for transformations? Either on the Transformanager or on the TransformItem? I tried changing the TransformItem's origin property but it has no effect... Thanks! Link to comment Share on other sites More sharing options...
Author Share Posted April 14, 2010 Just searched the forums a little better... sad that it can't Link to comment Share on other sites More sharing options...
Author Share Posted April 15, 2010 I managed a semi-simple workaround: I created an invisible shape proxy of my transformed object which serves as the TransformItem, and replicate its transform values to the real object whose center has been shifted... private function init():void{ // _tm is my transformManager _tm.addEventListener(TransformEvent.MOVE, transformUpdateHandler, false, 0, true); _tm.addEventListener(TransformEvent.SCALE, transformUpdateHandler, false, 0, true); _tm.addEventListener(TransformEvent.ROTATE, transformUpdateHandler, false, 0, true); } private function transformUpdateHandler(e:TransformEvent):void { TweenMax.to(_realObject, 0, {scaleX:tranformItem.scaleX, scaleY:tranformItem.scaleY, rotation:tranformItem.rotation, x:tranformItem.center.x, y:tranformItem.center.y}); } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now