Mask Inversion???

Is there a way to easily invert a flash mask???  Trying to think of a more descriptive way to explain, but it is pretty simple...I guess.
acekzAsked:
Who is Participating?
 
dutchfoxerCommented:
Normally what is beneath the mask-shape is revealed. You want what is masked to be hidden, right?

Not so easy. Fastest way would be to create an inverted shape youreself. Say your mask is a circle. Then you want to create a square accross the whole screen and cutout a circle.

If the background is for example an even colour, like black, the instead of masking the circle you make the circle black also.

With actionscript!?!? No sorry, no solution there as far as I know.... never seen it.
0
 
ZefferCommented:
dutchfoxer is right in that you can't just invert a mask with actionscript

however to expand on his thinking..

if you created two separate movieclips one containing the circle shape and the other containing a shape the size of the stage with the circle cut out .. drop an instance of each on the stage and name them .. say mask1 and mask2

and then on a button the code..

on(rollOver){
      _root.setMask(mask1);
}

and on another button the code..

on(rollOver){
      _root.setMask(mask2);
}

you would effectively be inverting the mask as you roll from one button to the other
you would also want to place the mask clips on the top layers so they are above other content
if you want to see your buttons the whole time ..these would need to be on the very top layer to prevent them being masked

Z
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.