|
13.1.2007, 20:26 Total views: 20381
This tutorial will teach you how to create mystical pyramid in flash 8 with very little scripting.
Step 1
Start Flash. Select Modify > Document (shortcut key: Ctrl+J ). Set the width of your document to 300 pixels and the height to 225 pixels. Select white as background color, for Frame rate choose 120 fps (Frames per Second) and click ok.

Step 2
Take the Selection Tool (V), and double click on layer 1 to rename its name in picture. After that choose File > Import > Import to Stage, and import any picture size 300x225px.
Step 3
While the picture is still selected, go to the Align panel (Ctrl+K), and do the following in the Align panel:
1.Make sure that the Align/Distribute to Stage button is turned on. 2.Click on the Align horizontal center button and 3. Click the Align vertical center button.

Now you're centerd your picture with the background.
Step 4
After that, while the picture is still selected, press F8 key (Convert to Symbol) to convert this picture into a Movie Clip Symbol.

Step 5
Take the Selection Tool (V), click once on the picture to select it, press F9 or select Window > Actions to open the Actions panel. After that, enter the following ActionScript code inside the Actions panel:
onClipEvent (enterFrame){ this.ang=ang+0.01; _alpha=190*Math.sin(this.ang)+190; _rotation--; _xscale=260*Math.sin(this.ang)+1900; }
Step 6
Create a new layer and name it pyramid.
Step 7
Using the Flash tools for drawing, draw a "triangle" which will represent the pyramid. See the picture below.

Step 8
Select pyramid layer and convert it to a mask by right-clicking on the pyramid layer and selecting Mask. See the picture below.

Test your Movie (Ctrl+Enter)
We're done!
Enjoy!
Download source file (.fla)
|
 |
|
|
|
Related links
|
 |
|