Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
retropunk

Auto select Crop?

Recommended Posts

I am wondering if I can have the crop auto select without having to DOUBLE_CLICK

I am using your example at the moment:

 

var manager:TransformManager = new TransformManager({bounds:new Rectangle(0, 0, 1100, 850)});
var crop:Crop = new Crop(_imageContainer, manager);

 

I remember doing something like that in the AS2 version of the Transform Tool...but that didn't do cropping I don't think.

 

Thanks for the help

- Patrick

Link to post
Share on other sites

Sure, it should be as simple as:

crop.cropMode = true;

Link to post
Share on other sites

I tried that first but I only see the mask without the resize handles...is there another method to launch the handles as well?

 

Thanks

Link to post
Share on other sites

Oh, sure. Just add one line:

crop.cropMode = true;
manager.selectItem(crop);

Link to post
Share on other sites

Ha! I didn't think to look at the manager! I was looking to the crop for the method. DOH!

Thanks Jack! This tool is really amazing.

 

Patrick

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×