| Flash Bestiary / Oddments / American Flag |
|
American FlagThe American flag shown here was generated completely algorithmically using the dynamic drawing routines. As a result, the movie is very small - only about 1k! The flag is divided up into narrow vertical strips using masks. Then the strips are rotated slightly using sin waves. This produces apparent motion in both the x and y directions. The motion propagates from the left edge of the flag to the right edge, producing the effect that the wind is blowing from the left. The function that animates the flag reads as follows:
flag0.onEnterFrame = function() The next movie in this sequence shows how to apply this effect to a photographic image. |
|
|
|
Copyright © 2003,2004 by Jim Bumgardner. All Rights Reserved. Leave Jim some feedback