Adobe Illustrator Tutorials Image

Adobe Flash CS3 Opacity Gradient Mask Tutorial


Tutorial Written by: Jay Han (www.jay-han.com)


I’m a flash user since version MX, it is a very great tool to create interactive web contents. But there is one effect I want to achieve but couldn’t do in Flash: creating opacity mask. But thing had changed. Opacity mask can be done in Flash since version 8! Hopefully I am not too late to know this. Here I am going to tell you how to create opacity gradient mask with just few lines of codes in Flash.

To do this tutorial, you need Macromedia Flash 8 of course and a picture to mask. Before proceed, you can try to feel the opacity mask effect by dragging the masked image in the flash above, and starts the tutorial.

First, launch the Flash 8 program and create a new flash document. Then, import any picture you like to use and convert it to a movie clip symbol by pressing F8. Then giving this movie clip an instance name call “picture”. Now you can lock the layer and create a new layer on top.

Next, you need to create a opacity gradient mask to mask the picture. Select the Oval Tool and draw out a circle on top of the picture. Delete the stroke if exist and make the Solid Color Fill to Radial Gradient. Now you have to make an end point of the gradient transparent by dragging the Alpha level from 100% to 0%. The circle gradient now is from color and faded to transparent. Select this circle and convert it to movie clip and giving this the instance name “mask”.

Create another layer, and on the first frame, enter the code below:

// to set the mask
picture.setMask(mask);
// to make the opacity gradient mask draggable
mask.onPress = function() {
startDrag(”mask”);
};
mask.onRelease = function() {
stopDrag();
};

Now here is the magical part. To make the opacity mask works, you need to tick Use runtime bitmap caching for “picture” and “mask” instances shown below. It is just located at the bottom of Blend option.

Adobe Flash CS3 Opacity Gradient Mask Image

After ticking for both instances, save this flash document and Ctrl+Enter to test this movie. Now you should have your opacity gradient mask working by just using simple Action Script! Hope this tutorial helps and here I upload my source file to download for your reference.

If you are interested on learning more about these features, I personally recommend the products listed below. The Total Training Packages and the Marrutt software series are two of the top ranked tutorial companies for Adobe Products. Total Training is an official certified partner of Adobe. With these products you will reach an all new level of understanding of these products. Whether you are young student learning the ends and outs of the Adobe CS3 series or a businessman that would like to make those reports or websites look better than they have ever looked before. You can ensure that these products will increase your knowledge and enable you to be the next Adobe guru.

Adobe Flash CS3 Online Training from Total Training

Total Training provides customers with a Video Training Series that is promoted by a Partnership with Adobe Systems (Worldwide). You can't go wrong with the incredible series of DVD software that this company provides. Total Training provides a one of a kind offer to let you try all of their online products for 2 days with a special guest pass. You will be on your way to being an Adobe expert in no time!

Marrut Software Training Tutorials

Marrutt Software Training Tutorials provides you with a cheaper alternative to Total Training package. They use VTC software training CDs, which are used by Adobe Systems (Europe) Ltd, Ford Motor Co Ltd, Ministry of Defence and nearly all the universities and colleges in the UK. Marrutt also provides free software demos of all products online. You can view the first 3 chapters of each product within the demo. You will be able to see the quality of the product before you purchase it. An example of an online free demo can be found here Marrut Adobe Flash CS3 Online Demos.


If you would like something that is a bit more contemporary, why not settle down and read a good book. This Adobe Flash CS3 is written by the Adobe Creative Team. It provides great information for learning the ins and outs of the program. If you have the mindset to read attentively, I personally recommend this book.