25 July 2010
Use the Actions panel in Adobe Flash Professional to create and edit ActionScript code for an object or frame. Selecting a frame, button, or movie clip instance makes the Actions panel active. The Actions panel title changes to Button Actions, Movie Clip Actions, or Frame Actions, depending on what is selected. To display the Actions panel, select Window > Actions or press F9.
To create scripts embedded in a FLA file, type your ActionScript code directly into the Actions panel in the Script pane on the right side:
When you work in the Actions panel or type in the Script window, Flash detects the action you are entering and displays a code hint. There are two types of code hint: a tooltip that contains the complete syntax for that action and a pop-up menu that lists possible ActionScript elements, such as method or property names (sometimes referred to as the code completion feature).
You can create frame scripts by placing ActionScript code on the main Timeline of a FLA file, in a frame that contains a keyframe. It is a best practice to create an actions layer at the top of the other layers in the Timeline and place all frame scripts on this layer that contains only ActionScript.