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.


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.


Member of the Anti Hacker Alliance

Select a language if you need :

Page chargée en 0.001 sec.

Dernière Modification : Ven 7 Aout 2020 8:30
Copyright © 1999-2020 Jean-Paul Molina Tous droits réservés.

to Google