Chapter TwelveUsing Components

If you use Flash frequently, there may be symbols that you’ve found yourself using over and over—a button, for example. There’s no point in recreating the symbol and its accompanying ActionScript if you can reuse a symbol and script that you’ve already made.

Flash takes that principle a step further: It provides ready-made, prescripted symbols, called components, that you can use in any movie. You can find them in the Components panel (Window > Components).

The ActionScript inside these components is thorough and robust, so you can depend on them to work properly in every situation. In addition, because the ActionScript has been compiled (see #83), the scripts run much faster and make fewer demands ...

Get Adobe Flash CS4 Professional How-Tos: 100 Essential Techniques now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.