Flash tutorials
Home 3D (2) Actionscripting (65) Animation (100) Audio (4) Drawing (7) Full flash sites (4) Getting Started (15) Navigation (25) Special Effects (52) Text Effects (38)

Mystical pyramid

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)

Have questions about this tutorial?
Visit our friendly Community Forums!
Digg it! Add this tutorial to del.icio.us! Furl it! Add this tutorial to reddit! Spurl it! Add this tutorial to technorati!

Top tutorials

1. Advanced full flash site - Part 1
Total views: 221536

2. Water effect
Total views: 166041

3. Photo slide show
Total views: 153641

4. High-tech city animation
Total views: 151459

5. Special Picture Effect
Total views: 146247

Related links