[an error occurred while processing this directive]

The primary location for all your Flash ActionScript is the Actions Window.

Viewing code

To view the code associated with a specific object, click on that object. The code will appear in the code section of the Actions Window. If you make changes to the code in the Actions Window, those changes are included in the document automatically (there is no separate saving procedure for code).
Actions window select frame

If you create code to be attached to a specific frame instead of to a specific object, you can do so by selecting the frame and adding code in the Actions Window. To select a frame, click on it in the timeline. Once you've added code, that frame in the timeline will be rendered with a small a to indicate the action programmed there.

Normal vs. Expert modes

Actions Window arrow menu Flash's Actions Window will allow you to program in two different modes, Normal and Expert. Normal mode allows you to use the ActionScript programming tools in the actions section and to use the details section to refine your code. On the other hand, Normal mode will not allow you to edit your ActionScript code by hand.

Expert mode, conversely, will allow you to type directly in the code section, bypassing the actions and details sections of the window. Alas, when you're using the Expert mode, very few of the options in the actions section are open to you. You may find that once you know a bit more about ActionScript, a mix of the two is the best way to go.

To switch beteen normal and expert mode, simply click the arrow menu in the upper right of the actions window and select the mode you'd like to use from the pop-up menu that appears (as shown).

The Window

The Actions Window is divided into three sections. Below are the details about how to use the different sections.

Actions
Actions Window w/labels
Click for enlargement
The actions section of the Actions Window allows you to select different ActionScript functions and actions. It has a nested set of menus just like a file display, and contains many of the ActionScript codes you will need to know. To add a code element from the actions section, double-click on it or drag it from the actions section to the code section.

Code
The code section of the Actions Window shows you the code related to the selected frame or object in your movie. To alter a portion of the code, select it with the mouse and either alter the details of the code or press delete to remove that code.

Details
When you select a portion of code, the details for that code appear in the lower portion of the Actions Window. To alter that code, select or type in the boxes that appear in the details section, and your code will change.
Note: Occasionally, when you click on a piece of code, the details section will not change. To remedy this, simply click on a different piece of code, and then click back on the piece of code that failed to appear before.

Back [an error occurred while processing this directive]