Writing Scripts with ActionScript > Using the Actions panel |  |

Using the Actions panel

To add an action to a Flash document, you must attach it to a button or movie clip, or to a frame in the Timeline. The Actions panel allows you to select, drag and drop, rearrange, and delete actions.

You can use the Actions panel in two different editing modes: normal and expert. In normal mode you write actions by filling in parameter text boxes. In expert mode you write and edit actions directly in a Script pane, much like writing scripts with a text editor.

To display the Actions panel, do one of the following:

| Choose Window > Actions.
| Press F2.

To activate the Actions panel:

Select an instance of a button, movie clip, or frame.

The Actions panel title changes to reflect the selection.

To navigate through the Actions toolbox, do the following:

| To select the first item in the Actions toolbox, press Home.
| To select the last item in the Actions toolbox, press End.
| To select the previous item in the Actions toolbox, press the Up Arrow or Left Arrow key.
| To select the next item in the Actions toolbox, press the Down Arrow or Right Arrow key.
| To expand or collapse a folder, press Enter or Spacebar.
| To insert an item into a script, press Enter or Spacebar. (This is the same as selecting Add to Script from the item's context menu.)
| To scroll up a page of items, press Page Up.
| To scroll down a page of items, press Page Down.
| To search for an Actions toolbox item by initial character, type the character. This search is not case-sensitive. You can type the character multiple times to cycle through all the items that start with that character.