Solved

Mask Inversion???

Posted on 2004-11-01
2,249 Views
Last Modified: 2008-02-01
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.
0
Question by:acekz
    2 Comments
     
    LVL 9

    Accepted Solution

    by:
    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
     
    LVL 23

    Assisted Solution

    by:Zeffer
    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    The Complete Ruby on Rails Developer Course

    Ruby on Rails is one of the most popular web development frameworks, and a useful tool used by both startups and more established companies to build strong graphic user interfaces, and responsive websites and apps.

    This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
    While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
    In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
    The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

    931 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now