Flash Player 6 r65.
This class implements a basic, three-position switch (up, middle, down). It
is set by default (autoCenter == false) to hold the three discrete
positions, or be set to snap back to the center (autoCenter == true)
after pressing the switch into the up or down positions.
This component is distributed as a compiled clip (SWC) rather than a FLA like
other components in this set. You can change the graphics for this component
by specifying a linkage ID for a movie that contains switch pieces. The movie
must refer to the up graphic as swUp, the middle as swMiddle,
and the bottom, swDown. The component will assign the proper event
handlers to these graphics.
The class has three possible events:
onUp: When the switch is thrown (pressed) to the up position.onMiddle: When the switch is thrown (pressed) to the middle position, or,
if autoCenter is true, when the switch returns to the center after being released
from the up or down position.onDown: When the switch is thrown (pressed) to the down position.Like other components, you may change the event names in the property inspector.