• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 11. Working with Numbers > Task: Random Snowflakes

Task: Random Snowflakes

A good example of the usefulness of random numbers is a snowflake animation. You can create such an animation without ActionScript, but that would mean making as many as 100 snowflake instances, each with its own tweened path.

With ActionScript and random numbers, you can position a snowflake randomly on the screen, give it a random speed and spin, and even move the snowflake back to the top of the screen when it hits the ground so that the snow continues to fall.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint