Solved

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

Posted on 2004-08-11
1
541 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to record live broadcast.

705 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

19 Experts available now in Live!

Get 1:1 Help Now