60 Writing and Editing ActionScript 2.0
To pin a script:
1. Position your mouse pointer on the Timeline so the script appears in a tab at the lower left
of the Script pane in the Actions panel.
2. Do one of the following:
■ Click the pushpin icon to the right of the tab.
■ Right-click (Windows) or Control-click (Macintosh) on the tab, and select Pin Script.
■ Select Pin Script from the pop-up menu (at the upper right of the Actions panel).
■ With the mouse pointer focused in the Script pane, press Control+= (equal sign) in
Windows or Command+= on the Macintosh.
To unpin one or more scripts, do one of the following:
■ If a pinned script appears in a tab at the lower left of the Script pane in the Actions panel,
click the pushpin icon on the right of the tab.
■ Right-click (Windows) or Control-click (Macintosh) on a tab, and select Close Script or
Close All Scripts.
■ Select Close Script or Close All Scripts from the pop-up menu (at the upper right of the
Actions panel).
■ With the mouse pointer focused in the Script pane, press Control+-(minus sign) in
Windows or Command+- on Macintosh.
To use keyboard shortcuts with pinned scripts:
■ You can use the following keyboard shortcuts to work with pinned scripts:
Inserting target paths
Many of the actions that you create in your script will affect movie clips, buttons, and other
symbol instances. To apply actions to instances on a timeline, you set a target path—the
address of the instance you want to target. You can set either an absolute or relative
target path.
Action Windows shortcut key Macintosh shortcut key
Pin script Control+= (equal sign) Command+=
Unpin script Control+- (minus sign) Command+-
Move focus to tab on the right Control+Shift+. (period) Command+Shift+.
Move focus to tab on the left Control+Shift+, (comma) Command+Shift+,
Unpin all scripts Control+Shift+- (minus) Command+Shift+-