Share Posted June 29, 2010 Hi Jack, could you help me with question about unrotated height/width for TransformItem. TransformManager have methods getUnrotatedSelectionHeight() and getUnrotatedSelectionWidth(). But how to get unrotated height/width for TransformItem? Thank you for help in advance. Example: var item : TransformItem; ... trace(item.getUnrotatedHeight()); trace(item.getUnrotatedWidth()); Link to comment Share on other sites More sharing options...
Share Posted June 29, 2010 There are no such methods. You'd need to do that yourself, like: var rotation:Number = targetObject.rotation; targetObject.rotation = 0; var unrotatedWidth:Number = targetObject.width; var unrotatedHeight:Number = targetObject.height; targetObject.rotation = rotation; 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