Home
Previous TopicNext Topic
Previous PageNext Page
 
   GearToy
         My first Flash program
 

D S E

 
 


After learning the basics of creating a Flash animation, I wanted to write a Flash program - with most of the shapes and animation generated by code ("scripts"), not with drawing tools. While looking for a simple project to tackle - a small game or applet that would show off the programming potential of Flash's scripting language - I saw a clever toy in a toy store. It had an assortment of plastic gears that you could rearrange, but instead of the traditional fixed grid of pegs, it sported a magnetic surface - gears could be placed anywhere on it, and would stick there and spin in place. I decided to create a similar toy in Flash. Here is the result:


 

By request, here is the source code:

GearToy.src.1.1.txt

<<< games <<< --- Dan Efran Gallery --- >>> medallions-2000 >>>


Villa Infinity Copyright ©1999-2011 by Daniel S. Efran. All rights reserved.
Last update for this page: 15 June 2011
Send comments to embassy@efran.org