1 Tutoriais Flash Apply A Mask As A Cursor On An Image Transparent With Flash 8 Qui Jan 20, 2011 6:15 am
Admin
Admin
Tutorial Flash 8 ActionScript 2.0
This tutorial is the second part of the tutorial (such as cursor mask). In this tutorial also learn how to import an image to the scene, transforming as a layer in a layer mask, application of ActionScript 2.0 code.
Macromedia Flash 8 Professional. Tutorial.
Apply a mask as a cursor on an image transparent.
In the next tutorial you'll learn a technique on how to make a cursor of a program and apply it to a mask with a transparent image. This tutorial is the second part of the tutorial (Programming A Cursor As A Mask With Flash . In this tutorial also learn how to import an image to the scene, transforming as a layer in a layer mask, application of ActionScript 2.0 code. For this tutorial before you get a picture (gif, jpge, png) with dimensions 350 pixels wide * 561 pixels high. At the end of the tutorial will have a flash movie (swf) spectacular. Good luck!
Step 1
Design document properties ctrl. + J.
The size of this flash movie is 350 px * 561 px wide and high.
Use for this movie as background color # 000000.
The frame rate is 12 fps.
Step 2
Created in this film are two symbols. Create the first of the symbols ctrl. + F8.
Rename this symbol (mask).
Select the option (type>> movie clip).
Step 3
Installed in the symbol (mask), select the oval tool (O).
Draw the vector selected. Use as fill color #00FF00.
The dimensions are oval, 100.0 * 100.0 px wide and high.
Put the oval in coordinates X: 0.0 Y: 0.0.
Step 4
Create a new symbol ctrl. + F8.
Rename symbol (pic).
Select option (Graphic).
Step 5
Located in the symbol (pic) to import an image ctrl. + R, tends to import the image for size 350 * 561 px.
Put the image in coordinates X: 0.0 Y: 0.0.
Step 6
Return to the Scene, rename the layer (picture alpha).
Open the Library (ctrl. + L), move the symbol (pic) from the Library.
Put the image in coordinates X: 0.0 Y: 0.0.
Step 7
Select the color (alpha), this option is in the Properties pane.
Reduce the color alpha to 20%.
To have the option of selecting necessary color alpha symbol inserted (no frame).
Step 8
Insert a new layer to rename the layer (pic).
Put again the symbol (pic) in the scene. (Panel Library ctrl. + L)
Put the image in coordinates X: 0.0 Y: 0.0.
Step 9
Insert a new layer to rename the layer (mask).
Drag from the Library panel ctrl. + L symbol (mask)
In the box instance name (mask-cursor).
Put the symbol in any coordinate X: ? Y: ?
Step 10
Click the right mouse button on the layer mask.
In the sub-menu select the mask.
Step 11
In the latter step only need to add the ActionScript 2.0 code.
Select the frame of the layer mask.
Open the panel Actions - frame, write the following code.
Mouse.hide ();
startDrag (_root.mask-cursor ", true);
With this step is completed by the tutorial. If you have any questions or leave your comments below.
Well Done!
Press Ctrl. + Enter and see the final of the animation. See you soon. @----- ]
Tutorial by The Mixer from adobeflashtutorial
This tutorial is the second part of the tutorial (such as cursor mask). In this tutorial also learn how to import an image to the scene, transforming as a layer in a layer mask, application of ActionScript 2.0 code.
Macromedia Flash 8 Professional. Tutorial.
Apply a mask as a cursor on an image transparent.
In the next tutorial you'll learn a technique on how to make a cursor of a program and apply it to a mask with a transparent image. This tutorial is the second part of the tutorial (Programming A Cursor As A Mask With Flash . In this tutorial also learn how to import an image to the scene, transforming as a layer in a layer mask, application of ActionScript 2.0 code. For this tutorial before you get a picture (gif, jpge, png) with dimensions 350 pixels wide * 561 pixels high. At the end of the tutorial will have a flash movie (swf) spectacular. Good luck!
Step 1
Design document properties ctrl. + J.
The size of this flash movie is 350 px * 561 px wide and high.
Use for this movie as background color # 000000.
The frame rate is 12 fps.
Step 2
Created in this film are two symbols. Create the first of the symbols ctrl. + F8.
Rename this symbol (mask).
Select the option (type>> movie clip).
Step 3
Installed in the symbol (mask), select the oval tool (O).
Draw the vector selected. Use as fill color #00FF00.
The dimensions are oval, 100.0 * 100.0 px wide and high.
Put the oval in coordinates X: 0.0 Y: 0.0.
Step 4
Create a new symbol ctrl. + F8.
Rename symbol (pic).
Select option (Graphic).
Step 5
Located in the symbol (pic) to import an image ctrl. + R, tends to import the image for size 350 * 561 px.
Put the image in coordinates X: 0.0 Y: 0.0.
Step 6
Return to the Scene, rename the layer (picture alpha).
Open the Library (ctrl. + L), move the symbol (pic) from the Library.
Put the image in coordinates X: 0.0 Y: 0.0.
Step 7
Select the color (alpha), this option is in the Properties pane.
Reduce the color alpha to 20%.
To have the option of selecting necessary color alpha symbol inserted (no frame).
Step 8
Insert a new layer to rename the layer (pic).
Put again the symbol (pic) in the scene. (Panel Library ctrl. + L)
Put the image in coordinates X: 0.0 Y: 0.0.
Step 9
Insert a new layer to rename the layer (mask).
Drag from the Library panel ctrl. + L symbol (mask)
In the box instance name (mask-cursor).
Put the symbol in any coordinate X: ? Y: ?
Step 10
Click the right mouse button on the layer mask.
In the sub-menu select the mask.
Step 11
In the latter step only need to add the ActionScript 2.0 code.
Select the frame of the layer mask.
Open the panel Actions - frame, write the following code.
Mouse.hide ();
startDrag (_root.mask-cursor ", true);
With this step is completed by the tutorial. If you have any questions or leave your comments below.
Well Done!
Press Ctrl. + Enter and see the final of the animation. See you soon. @----- ]