Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Flash masking layer showing on movie

Posted on 2004-10-22
Medium Priority
Last Modified: 2010-04-03
Hello all,
   I am quite new to Flash, so I will explain this as best I can.  I created a new movie.  On this movie I have created 3 layers.  

Layer 1 (the bottom most layer) is a colored rectangle that covers the stage area.  

Layer 3 (the top most layer) contains a multi line text block that has been converted to a symbol.  On frame 1 the text is below the stage, and at frame 50 the text is above the stage (vertical travel only).  

Layer 3 then has a motion tween to have the text travel up the stage.  

Layer 2 has a rectangle that has a linear gradient where the top 20% is the graident that goes from 100% alpha to 0% alpha.  The rest of the rectangle is white.

Next on Layer three I select the "Mask" option for the layer.  

Now when I press enter to watch the movie on the stage, no problems.  The mask layer acts correctly and the text fades out at the top of the movie as I wish.  However when I press Ctrl + Enter to test the movie the masking area (the white rectangle with the gradient at the top) is visible and the text does not show.  This behavior also occurs when I export the movie.  

What I am doing wrong?

Thanks all.
Question by:edc
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Expert Comment

ID: 12386814
Is the text dynamic text or static?  If you click on the text then look in the properties section there will  be a drop down menu thing on the top left of the properties box.  That is where you can change it.  It needs to be set to static.  Because you can't tween dynamic text.   If you have to tween dynamic text I haven't found a way to do it.  That is most likely what your problem is.  If not can you post the file so we can take a look it is probably something simple.


Author Comment

ID: 12388077
Hi fixitben,
   Thanks for your comments.  The text is static, and after creating it I converted it into a symbol.  The tweening of the text works without a problem if I don't use the mask layer.  It's when I have the mask layer that the mask area (the white rectangle that should be interpreted as the area to show the text) is showing in the published movie rather than acting as a masking layer.

Accepted Solution

fixitben earned 500 total points
ID: 12390125
I think You Have your conecpt layers and masks confused.  Here is a file that I created that I think does what you want.  http://theyac.org/experts/mask.fla  I shifted the layers so you can see the difference.  You need to have the text as the bottom most layer then the big square above the text the the gradient above that.  Then right click on the big square layer and set that one to mask not the text layer.  Then you will see the green symbol appear next to the big square layer  and then a subset green symbol next to the text layer.  That shows that the big square is masking the text.

Hope this helps

Author Comment

ID: 12416971
Thanks Ben.  That helped out just right.

Expert Comment

ID: 12417335
Your welcome Glad I could help


Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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 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.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

609 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