Jump to content
GreenSock

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

new FlexCrop -> TransformManager

Recommended Posts

Hi,

 

Hopefully a quick question. I'm using the 'FlexTransformManager' and wanted to tryout the new 'FlexCrop' feature. My current cropper works ok but your seems like it could be a bit tidier.

 

When I use the FlexCrop it's typed to use the 'TransformManager' not it's flex version which I'm using in my app

 

var mc1Crop:FlexCrop = new FlexCrop(mc1, flexTransformManager);

 

Am I doing something stupid?

 

Thanks

Link to comment
Share on other sites

Nope, you're not doing anything stupid - FlexTransformManager is just a shell that wraps around a TransformManager instance (to work around some of the Flex issues and make it Flex-friendly). All you need to do is reference the FlexTransformManager's "manager" property like:

 

var mc1Crop:FlexCrop = new FlexCrop(mc1, flexTransformManager.manager);

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