Macromedia Flash - Effects with the cube
In this article, I will explain how to create an advanced effect with Flash 8-based blocks or shapes and of course use Action Script.
Move the mouse over the cubes
Step 1
Open a new Flash file. Go to Modify > Document ( Ctrl + J ). Set the width and height respectively: Width : 400 pixels and Height : 250 pixels. Select background color # 72768, Frame rate : 42 fps and select OK .
Step 2
Select the Rectangle tool (R). You will draw a rectangle without border color. To do this, select the color for the Stroke to No color , the Fill color to white ( white ), and draw a 35 x 35px cube (See the picture below).
Step 3
Select the cube you just drawn, press F8 (or go to Modify > Convert to Symbol ) to convert that cube into a Movie Clip.
Step 4
Double-click the above Movie clip with the Selection tool (V). You will go inside Mobie clip.
Step 5
Select the cube and press Ctrl + C key (Copy), create a new layer (layer2), select frame 2 and press F6 key, then press Ctrl + Shift + V (Paste in Place).
Step 6
Go back to layer 1, select it and press F8 key (Convert to Symbol) to convert it to Button. See the picture below.
Step 7
Using the Selection Tool (V), click once on the cube to select it and open the Properties Panel ( Ctrl + F3 ). On the right you will see the Color menu. Choose Alpha with 17% .
Step 8
Select frame 8 and 13 and press F6. After that, go back on frame 8, select the Free Transform Tool (Q), press and hold Shift key, use the mouse to drag the cube a little bigger. See the picture below.
After that, take the Selection Tool (V), select the cube again and open the Properties Panel . On the Color menu, select Alpha again and the value is 100% .
Step 9
Right-click anywhere in the color area between frame 1 and frame 8 and then between frame 8 and frame 13 with the same line, choose Create Motion Tween from the menu that appears.
Step 10
Go back on frame 1, take the Selection Tool (V) and select the cube again. Press F9 key or go to Window > Actions to open Actions panel .
Step 11
Enter the ActionScript code below into the Actions Panel :
on ( rollOver )
{
play ();
}
Step 12
Lock layer1, select the first frame of layer 2, and in Action Panel (F9) enter the following code:
stop ();
Step 13
Select frame 2 of layer 2, press F8 key ( Convert to Symbol ) to convert this cube to Graphic Symbol .
After that, take the Selection Tool (V), select the cube, go to the Properties Panel . In the Color menu, select Alpha and 17% .
Step 14
Select frame 35 and 45 and press F6 key.
Step 15
Go back on frame 35, take the Free Transform Tool (Q) to increase the cube shape as we did for the first cube (Step 8).
Step 16
Right-click anywhere in the area between frame 2 and 35 and then frame 35 with 45 and choose Create Motion Tween from the menu that appears.
Step 17
Go back to the main scene ( Scene1 ) and multiply the cube to multiple copies.
You can download the source file here for reference.
You should read it
- How to Cut an Object Using Knife Project in Blender 2.77
- Instructions on how to use VPN in Opera browser
- How to cut the image with Paint
- Formula to calculate the area of cubes and cubes
- 4 ways to measure FPS frame rate (Frame Per Second) in PC game
- Nested frames and effects for images in Word
- Format Tab text in Word
- Macromedia Flash - Create text frames with scroll bars in Flash 8.0
May be interested
- Macromedia Flash - Effects of changing position of textthis tutorial will show you how to create a constantly changing text effect in flash using the action script.
- Macromedia Flash - Effect of 'oil spill'through this tutorial you can make an effect for small ads that are quite simple but no less strange ...
- Macromedia Flash - Making fireworks effectsthis exercise is very simple, you will be guided on how to make a burst effect using a mask. no need to use action script code. to make this image more vivid, you can add sound effects! through this exercise, you'll know how to use the color mixer panel (shift + f9), how to convert the layer to a mask ...
- Macromedia Flash - Create analog clock in Flashthis tutorial will show you how to create a real working clock using flash effects.
- Macromedia Flash - Create flash menu with soundin this flash tutorial, we will guide you to create a dynamic flash menu with sound. you can use this menu on any website.
- Macromedia Flash - Visual effects using mouse clickin this article we will step by step learn how to create visual effects using mouse clicks. you can use these effects for flash banners, for some presentations
- Macromedia Flash - Create a snow effectthrough this tutorial, you will create a snow effect simply and quickly. you can use this effect on headers, banners on holidays or christmas cards ...
- Macromedia Flash - Complete Flash banner designin this article, we will show you how to create a complete flash banner without using the action script.
- Macromedia Flash - Water bubble effectcarefully watching this detailed tutorial will know how to create an extremely unique and funny effect with water bubble images using motion guide.
- Macromedia Flash - Create banner text effectthis article will show you how to create a beautiful text effect through some special flash tips. you won't need to use action script but simply create effects based on available tools. this tutorial can be applied when creating banners, advertisements and slideshows ...