Merry-go-round script

 

The purpose is to show rectangles moving along an ellipse, given variable size and alpha so it has got 3D effect.
It's only ActionScript. You couldn't test into SwishMax only with FlashPlayer and in a browser (Export / SWF+HTML)

I have already seen this kind of example, but without code published.
It had a sprite and a little script. Right here, I use only a script.

⇒ animation ⇐

Creating Objects

Set up movie size 640x480 and background color #999966. Frame Rate 30 or whatever.

Script

In Outline, select Scene_1, get in Expert Mode. Enter the following script :

Voilà, that's it. Make changes carefully.
You could places pictures instead of rectangles, it's up to you.

 


Si vous aimez le site

 

Select a language if you need :


Page chargée en 0.044 sec.

Dernière Modification : Mer 25 Janvier 2017 8:56
Copyright © 1999-2017 Jean-Paul Molina Tous droits réservés.

to Google