Jump to content
Search Community

Crop advanced

vincent test
Moderator Tag

Recommended Posts

And last thing, you forgot compatibility with Flex components (crop.as).

 

if (parent.hasOwnProperty("addElementAt")) { //for Flex compatibility (spark)

...

} else {

 

_target.parent.addChildAt(this, targetIndex+1);

_target.parent.addChildAt(_mask, targetIndex+1);

}

 

 

Thanks

Link to comment
Share on other sites

Oh, were you trying to use Crop.as in Flex? No need - that's exactly why I created FlexCrop :)

 

As for the other custom functionality you mentioned, you're welcome to add that yourself (it isn't supported natively). Keep in mind that Crop and FlexCrop were intended to be simply examples of how you could implement cropping behavior. Think of them as a jumping-off point. TransformManager drives everything under the hood anyway.

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.
×
×
  • Create New...