decorative banner

Wiring sprites with action


    You can add wired actions to a sprite by attaching actions to keyframes. For example, by attaching the Go To URL action to the Mouse Click Event for a sprite's keyframe, you can have a Web page open when the viewer clicks the sprite.

To wire a sprite with an action:

  1. Select the sprite and then select the keyframe that you want to attach an action to. If you need to create a new keyframe, use the Create Sample tool to place the new keyframe in the desired location on the sprite track. (See Adding and editing samples.)
  2. Display the Actions tab of the Sprite Sample Inspector. From the Events list, select one of the following mouse events that you want to trigger a sprite action:
    • Mouse Down triggers an action when the viewer presses the mouse button down (without releasing it) while the pointer is on top of the sprite.
    • Mouse Up triggers an action when the viewer releases the mouse button while the pointer is on top of the sprite.
    • Mouse Click triggers an action when the viewer clicks the sprite.
    • Mouse Enter triggers an action when the viewer moves the mouse pointer over the sprite.
    • Mouse Exit triggers an action when the viewer moves the mouse pointer away from the sprite.
  3. Click the New Item button New button to attach an action to the event. A dot symbol ("·") appears to the right of each event that is active.
  4. From the pop-up menu below the Events and Actions lists, choose an action, such as GoTo URL, and then set its properties as necessary below the pop-up menu. For more information on the actions in the pop-up menu, see Using actions to control tracks.
  5. Click Apply. You can wire the sprite with additional events and actions. For example, you can combine any of the mouse-click events with one of the two mouse-over events to make the sprite respond not only when the viewer clicks the sprite, but also when the viewer moves the mouse pointer over it.