Writing And Managing Scripts - Adobe 65018518 - Flash CS4 Professional Using Manual

User guide
Table of Contents

Advertisement

Behaviors are available only for ActionScript 2.0 and earlier, and only when you work in the Actions panel, not in an
external script file. Typically, you select a triggering object in your document (such as a movie clip or a button), select
Add in the Behaviors panel, and then select behavior, as the following example shows:
Selecting a behavior from the Behaviors panel
The behavior is added to the object and is displayed in the Actions panel.
The ActionScript of a behavior
For a sample about behaviors, see the Flash Samples page at www.adobe.com/go/learn_fl_samples. Download and
decompress the Samples zip file and navigate to the Behaviors\BehaviorsScrapbook folder to access the sample.
See also
"Controlling instances with
behaviors" on page 169
"Add and configure a
behavior" on page 170
"Create custom
behaviors" on page 170

Writing and managing scripts

Format code
Your code can be formatted and indented automatically or manually. If you use dynamic font mapping, you ensure
that the correct fonts are used for multilingual text.
Set Auto Format options
1
Do one of the following:
From the panel menu
In the Script window, select Edit > Preferences (Windows) or Flash > Preferences (Macintosh).
2
In the Preferences dialog box, select Auto Format.
3
Select any of the Auto Format options.
(at the upper-right corner of the Actions panel), select Preferences.
Updated 5 March 2009
USING FLASH CS4 PROFESSIONAL
ActionScript
339

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash cs4 professional

Table of Contents