Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
_Vlad_

Unrotated height and width for TransformItem

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×