View Full Version : Floating bits, so elegant...how do I do it??
OldGhost
04-16-2006, 05:23 PM
Can someone please tell me how I can achieve this effect:
Its dynamically generated tiny pieces of squares (or any shapes) floating around and fading out. The effect can be found on the following site's flash intro. After the flash intro finished, the same effect can also be found in their "dress catalog" section. It looks simple but how do I do it??
http://www.tagaya.co.jp
take a look at the Tween class. you'll find plenty of posts about it if you do a search on the forum.
Then you just need to pass some random values.
OldGhost
04-19-2006, 07:33 AM
take a look at the Tween class. you'll find plenty of posts about it if you do a search on the forum.
Then you just need to pass some random values.
Thanks so much for the Tip, since I'm a beginner with actioscript, I didn't know about the Tween class before. And after doing some search on the Tween Class, I now have an idea on what the class does...but still I haven't really found anything close to the effect I'm looking for....can you give some more hints on how it can be achieved? Thanks!
heres a run down of how i would appraoch it
1. each clip should contain a timer that is set randomly - setInterval(), clearInterval, Math.random(), getTimer().
2. once the random time has passed it should then pick a random target for x and y - Math.random()
3. each clip then moves itself to the targets - Tween
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.