decorative banner

Wiring SWF buttons with actions


    In the Actions tab of the SWF Track Inspector, you can attach one or more actions to a SWF button. You can make it easier to identify buttons by defining a descriptive text string for each button, rather than having to rely on IDs. You define the text strings in the SWF file that describes each button.

    To define the text string for a button, insert a FSCommand with two arguments in the SWF file. For example:

    fscommand ("RootButtonScriptA", "RootButton_frame1")

    GoLive displays these two text strings as URL and Target in the Actions tab in the SWF Track Inspector as:

    URL: FSCommand:RootButtonScriptA

    Target:RootButton_frame1

To wire a SWF button with actions:

  1. Select the SWF track in the Timeline Editor and then display the Actions tab of the SWF Track Inspector.
  2. From the Button menu, choose the button you want to wire with actions. Any text you defined in the SWF for the button by using the FSCommand's arguments appears below the Button menu.
  3. From the Events list, select one of the following mouse events for the SWF button that you want to trigger an 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 SWF button.
    • Mouse Up triggers an action when the viewer releases the mouse button while the pointer is on top of the SWF button.
    • Mouse Click triggers an action when the viewer does a single click on the SWF button.
    • Mouse Enter triggers an action when the viewer moves the mouse pointer over the SWF button.
    • Mouse Exit triggers an action when the viewer moves the mouse pointer away from the SWF button.
  4. Click the New Item button New button to attach an action to the event. A dot symbol ("·") appears to the right of each active event.
  5. From the pop-up menu below the Events and Actions lists, choose an action, such as SWF Track Pan, 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.
  6. Click Apply. You can wire the SWF button with additional events and actions.