Solved

Is there a way to create nested masks in Flash MX?

Posted on 2004-08-11
1
543 Views
Last Modified: 2008-03-17
Hello,
I have a scene that I am using text to mask a picture and I am getting the effect I desire.  The problem is that as a standard in all of my scenes I have created a mask that mask the stage to create a widescreen effect.  So in essence I have 2 mask in this one scene.  I need that widescreen mask to mask the stuff in the text mask as well.  Is there a way to nest masks?

thanks
groovymonkey

0
Comment
Question by:groovymonkey
1 Comment
 
LVL 1

Accepted Solution

by:
techE_or_not_techE earned 250 total points
ID: 11773696
One way that you could do this is by making a separate movie clip containing the movie clip and text mask, which is then masked by your 'widescreenMask'.

However, if you are doing a lot of masking and it must be done dynamically, you might prefer to use the '.setMask()' command.

Used in frame script, it could look something like this:

_root.attachMovie("new_mc", "mc_linkage", _root.getNextHighestDepth(),{_x:Number(Stage.width/2), _y:Number(Stage.height/2)}))
_root.new_mc.setMask("myMask_mc")

this way, you can target any timeline that you want and attach movieClips at different depths to give a masking effect.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
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 what frame rate is, how to control it and what effect it has on the video.

837 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