Jump to content
GreenSock

FlashRockStar

Sclae only to a specific size ?

Recommended Posts

Hello,

 

right now i have another quetion ;)

 

It is possible to scale a transform item in aspect ratio, but is it possible to set a limited scale size like double the original size of the object?

 

Thank You!

Link to comment
Share on other sites

Sure, that's what the maxScaleX and maxScaleY properties are for (on TransformItem).

 

var item:TransformItem = myManager.getItem(myObject);
item.maxScaleX = 2;
item.maxScaleY = 2;

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.
×