If you are less experienced with writing ActionScript, you can add components to a document, set their parameters in
the Property inspector or Component inspector, and use the Behaviors panel to handle their events. For example, you
could attach a Go To Web Page behavior to a Button component that opens a URL in a web browser when the button
is clicked without writing any ActionScript code.
If you are a programmer who wants to create more robust applications, you can create components dynamically, use
ActionScript to set properties and call methods at run time, and use the event listener model to handle events.
Insert a component using the Component panel
When you first add a component to a document, Flash imports it as a movie clip into the Library panel. You can also
drag a component from the Components panel directly to the Library panel and then add an instance of it to the Stage.
In any case, you must add a component to the library before you can access its class elements.
1
Select Window > Component panel.
2
Select an instance of a component in the Component panel, and drag it to the Stage or Library panel. After a
component is added to the library, you can drag multiple instances to the Stage.
3
Configure the component as needed using either the Property inspector or the Components inspector. For
information on the parameters the component uses, refer to the appropriate component documentation for the
version of ActionScript you are using in the Flash document.
Enter parameters for a component using the Component inspector
1
Select Window > Component Inspector.
2
Select an instance of a component on the Stage.
3
Click the Parameters tab and enter values for any of the listed parameters.
About the Web Services panel
You can view a list of web services, refresh web services, and add or remove web services in the Web Services panel
(Window > Other Panels > Web Services). When you add a web service to the Web Services panel, the web service is
then available to any application you create.
You can use the Web Services panel to refresh all your web services at once by clicking the Refresh Web Services
button. If you are not using the Stage but instead are writing ActionScript code for the connectivity layer of your
application, you can use the Web Services panel to manage your web services.
For detailed information about using the web services panel, see www.adobe.com/go/learn_fl_web_services.
Undo, redo, and history
Undo, Redo, and Repeat commands
To undo or redo actions on individual objects, or all objects within the current document, specify either object-level
or document-level Undo and Redo commands (Edit > Undo or Edit Redo). The default behavior is document-level
Undo and Redo.
You cannot undo some actions when using object-level Undo. Among these are entering and exiting Edit mode;
selecting, editing, and moving library items; and creating, deleting, and moving scenes.
•
To remove deleted items from a document after using the Undo command, use the Save And Compact command.
Updated 5 March 2009
USING FLASH CS4 PROFESSIONAL
Workspace
29
Need help?
Do you have a question about the 65018518 - Flash CS4 Professional and is the answer not in the manual?
Questions and answers