?
Solved

Flash - Black and white image as mask

Posted on 2007-10-03
5
Medium Priority
?
2,411 Views
Last Modified: 2011-10-03
In Flash (CS3), I want to have a black and white bitmap be a mask for a movie clip.  How do I do this?

Thanks!
0
Comment
Question by:mediapanderer
  • 2
  • 2
5 Comments
 
LVL 18

Expert Comment

by:Antonio Estrada
ID: 20010539
I'm unsure if Flash CS3 has this option but there's no reason for not having it.

In Flash 8 it's as follows:

1. Import your image to the stage (Ctrl+R).
2. Select your imported bitmap.
3. Go to the Modify menu -> Bitmap -> Trace bitmap.
4. Depending on how much detail you want, change around the options. If you want full detail use this:
    a) Color threshold: 1
    b) Minimum area: 1
    c) Curve fit: Very Smooth
    d) Corner threshold: Many Corners
5. It will probably take a bit if it's too detailed, once it's finished, it'll be turned into a Shape.
6. Select either the black or white bits of the image (just click on them) and delete them.
7. Voilá, you have a Shape that you can now use as a mask.

Hope this helps, there shouldn't really be much trouble porting this to CS3, it must be almost identical.

Good Luck.

-V
0
 

Author Comment

by:mediapanderer
ID: 20010637
Thanks for that idea!  Although the source image has gradients and blurs in it (key part of the mask effect).

Thoughts?
0
 
LVL 18

Accepted Solution

by:
Jason Thompson earned 2000 total points
ID: 20010832
You can do this best by using a PNG with alpha channels as the mask rather than a flat GIF or JPG.

Here's a good tutorial and sample files for doing this exact thing in Flash 8:
http://whatdoiknow.org/archives/002407.shtml

He uses a shape with a gradient color-to-transparent, but you can swap in a PNG and it works just as well.

Hope this helps.
0
 

Author Comment

by:mediapanderer
ID: 20011064
PERFECT Graphixer!  Thanks!!!!
0
 
LVL 18

Expert Comment

by:Antonio Estrada
ID: 20011232
Nice one Graphixer :)
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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 what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

864 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