How to mask a photo in Flash mx

Written by on November 28, 2010

Flash tutorial

Let’s begin to create masking!!
Click here to view Demo


First of all,create a new file.Then go to the document properties and fix the size of your document which is equal to the size of the mystery picture you are gonna use.
Choose size
Now there is only one layer.Create 2 more layers.For this right click on “Layer 1″ and click on “Insert layer” and repeat one more time.
create layer
Remember the order of the layers; first layer 3, then 2 and 1. Click on layer 1, the bottom layer.Now we are going to work on it. This is the layer that is going to apear on the screen first. Here, write something like “Who is this football player?” or any question about the picture. Like I have done.
write question
Now click on Layer 2, the middle layer.
layer 2
In this layer we are going to insert the picture.Click on File>>Import.. Then browse the picture and click on it and click open. The picture is now imported in the document. Move the picture to it’s proper position.
If you also wanna do with messi then Download this image Here
messi
Now click on the Layer 3, the top layer. Let’s create a cursor.Draw a circle.
draw circle
Click on it.Now goto Insert>>Convert to symbol or press F8.
crusor-mc
Name it “cursor_mc”.Click on ok.Now, double click on the circle.
select circle
Draw 4 small circles around the big circle.
create layer
click on “Scene 1″ to come back to the main.
select cursor_mc
Now click on the circle.Click on the actions tab
properties
Paste the following code:

onClipEvent (load) {
Mouse.hide();
startDrag(this, true);
}
onClipEvent (enterFrame) {
_rotation +=30
}

Now,Right Click on the “Layer 3″, the top layer and Click on mask.
select mask
You’re done. Press ctrl + enter to test it.

Discuss
  • shipra

    is this tutorial can be made in flash cs3

  • Anonymous

    I keep getting this error?

    1087: Syntax error: extra characters found after end of program.

    It didn't work for me.

  • kaffiey2k

    This didn't work for me. I keep getting this error:

    1087: Syntax error: extra characters found after end of program.

Copyright © 2013 CallTheTricks - All Rights Reserved