Toxiclab.org

Globe image animation

26.5.2009, 14:11
Submited in: Flash | Total Views: 7771

This, step by step, detailed action script lesson, will show you how to create advanced globe image animation. You can use this animation for some flash banner, or some flash elements. Using this lesson, you will also learn how to import any image into a flash stage, how to convert it into a Movie Clip Symbol, how to apply action script code on it and much much more!

Example:



Step 1

First, find any image which you like to use for this lesson.



Step 2


Press Ctrl+J key on the keyboard (Document Properties) and set your Flash movie's frame rate to 75 and click ok.

Step 3

Call the current layer image. Double-click on its default name (Layer 1) to change it. Press Enter once you have typed in the new name!

Step 4

Choose now File > Import > Import to stage (Ctrl+R) and import any image into a flash stage.

Step 5

While the image is still selected, hit F8 key (Convert to Symbol) to convert it into a Movie Clip Symbol.



Step 6

After that, while the image is still selected, go to the Properties Panel below the stage. On the left side, You will find the Instance name input field there. Call this Movie Clip image. See the picture below!



Step 7

Select now the Selection Tool (V) and click once on the new made movie clip (image). After that, go to the AS panel (F9) and enter this code inside the actions panel:

onClipEvent(enterFrame){
 if(random(120) == 0){
 removeMovieClip(this)
 }
}

Step 8

Select now the first frame and go again to the AS panel (F9). Then, enter this code inside the actions panel:

i = 0;
this.onEnterFrame = function() {
 i++;
 image.duplicateMovieClip(_root.image+i, i, {_alpha:100, _rotation:random(360)});
};

We're done now!

Test your movie and enjoy!

Download example

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

Browse by category



Most popular tutorials


Resources Worth visiting