Description
There are many ways you can create interactive motion with Macromedia
Flash. This sample demonstrates how you can create a virtual joystick
that controls the motion of a symbol. It also demonstrates how a draggable
symbol (the joystick knob) can be constrained to the area of a circle.
Furthermore, the joystick knob behaves as if there is spring tension when
it is released.
Key features and ActionScript elements
Draggable symbols, Math object, Object object, localToGlobal, with
Instructions
Drag the joystick knob away from the center to control the motion of the
beetle. The farther you pull the joystick the faster the beetle will
move.
The source file for this movie (movement-joystick.fla) can be found in
the Flash MX/Samples folder.