Toxiclab.org

Object playing

22.11.2006, 0:58
Submited in: Flash | Total Views: 52297

Read this tutorial to see how to create object playing in flash 8, using the Action Script.You will also learn how to draw a rectanle and convert it into a Movie Clip Symbol and more.

 

Step 1

Create a new flash document, choose Modify > Document (Ctrl+J), and set Width to 300 and Height to 250px. Frame rate set to 20fps (Frames per Second).



Step 2


Double click on layer1 to rename its name in background. Then, insert a new layer and name it object.

Step 3

Select the object layer, take the Rectangle Tool (R), and draw the "object" like it is shown on the picture below.



Step 4

Press Ctrl+A, and after that, F8 key (Convert to Symbol), to convert it into a Movie Clip.



Step 5

Double click on a new made Movie Clip ("object"), or choose right click and Edit in Place.



Step 6

Then, while your "object" is still selected, press F8 key (Convert to Symbol), and convert it into a Graphic Symbol.

Step 7

Click on frame 15, and after that on frame 20 and press F6. Then, go back on frame 15, take the Free Transform Tool (Q), and increase the "object" a little. See the picture below.



Step 8

After that, while your "object" is still selected, open the Properties Panel (Ctrl+F3), and under Color choose Alpha, and set it to 22%.

Step 9

Click on frame 30, select the "object", and in Properties Panel, under Color choose Alpha and set it to 0%.

Step 10

Click on frame1, and after that on frame 15, and in Properties Panel under Tween choose Motion.



Step 11

Using the mouse, and drag and drop technique, move your whole movie on frame 2. See the picture below, and everything will be clear.



Step 12

Insert a new layer, and name it Invisible Button. After that, click on frame1, and create a invisible button, on the same place, where you have placed the "object".

Step 13

Select the invisible button, open the Action Script Panel (F9), and paste this script:

on (rollOver) {
gotoAndPlay(2);
}

Step 14

After that, click on the first frame of layer Invisible Button, and in Action Script Panel, paste this script:

stop();

Step 15

Go back on the main scene (Scene1) and duplicate your "object" many times, like it is shown on the picture below.



Test your Movie (Ctrl+Enter).

Goodbye!

Download example

Are you a website owner?
Click here to register and submit your tutorials!

Browse by category


Most popular tutorials