FLASH CS3
User Guide
398
2
Do one of the following:
•
In the Actions panel, select Import Script from the panel menu, or press Shift+I (Windows) or
Shift+I (Macintosh).
•
In the Script window, select File > Import Script or press Shift+I (Windows) or Shift+I
(Macintosh).
Export a script from the Actions panel
1
Select the script to export. Then select Export Script from the Actions Panel menu, or press Shift+X
(Windows) or Shift+X (Macintosh).
2
Save the ActionScript (AS) file.
Set text encoding options
1
Select Edit > Preferences (Windows) or Flash
> Preferences (Macintosh), and select ActionScript in the Category list.
2
Set any of these options:
Open/Import
Select UTF-8 Encoding to open or import using Unicode encoding, or select Default Encoding to
open or import using the encoding form of the language currently used by your system.
Save/Export
Select UTF-8 Encoding to save or export using Unicode encoding, or select Default Encoding to save
or export using the encoding form of the language currently used by your system.
Turn the export encoding warning off or on
1
Select Edit > Preferences (Windows) or Flash
> Preferences (Macintosh), and select Warnings in the Category list.
2
Select or deselect Warn On Encoding Conflicts When Exporting ActionScript Files.
Pin scripts in the Actions panel
If you don’t organize the code within your FLA file into one central location, or if you’re using behaviors, you can pin
individual scripts in the Actions panel to move among them more easily. To
pin
a script means that you can keep the
location of the code open in the Actions panel, and easily click between open scripts. This can be especially useful
when debugging.
In the following figure, the script associated with the current location on the timeline is on Frame 1 of the layer
named Cleanup. (The tab at the far left always follows your location along the timeline.) That script is also pinned
(it is shown as the rightmost tab). Two other scripts are pinned: one on Frame 1 and the other on Frame 15 of the
layer named Intro. You can move among the pinned scripts by clicking the tabs or by using keyboard shortcuts.
Moving among pinned scripts does not change your current position on the timeline.
A pinned script
If the content in the Script pane doesn’t change to reflect the location you select on the timeline, the Script pane is
probably showing a pinned script. Click the tab at the lower left of the Script pane to show the script associated with
your location along the timeline.