Jump to content
Search Community

Masking a Crop Object

Guest rlhoban
Moderator Tag

Recommended Posts

Guest rlhoban

I have a rectangular area that I'm uploading bitmaps that are controlled with the TransformManager. I would like the targets to only show in a masked area and allow the control points of the TransformManager to extend beyond the mask. I have this working with transformItems, however I would like to use Crop objects. When I use Crop objects I get a red block that extends beyond the mask with the control points and if I double click to enter the crop mode the original mask is ignored.

I've tried the two lines of code below to try and mask the Crop object. Any help would be greatly appreciated.

 

 

manager.selectedTargetObjects[0].target.mask = mask_mc;
manager.selectedTargetObjects[0].mask = mask_mc;
Link to comment
Share on other sites

It sounds like the issue is that your scenario requires TWO masks, but only one can be applied to an object in Flash. I think you'll have to choose to either wrap your whole area in a container Sprite and mask that (which means the handles will also get masked) or don't use Crop instances.  I wish there was an easy solution but none is coming to mind. 

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