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.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License
Flash User Forum |
More |
| 04/23/2012 | Auto-Save and Auto-Recovery |
|---|---|
| 04/23/2012 | Open hyperlinks in new window/tab/pop-up ? |
| 04/21/2012 | PNG transparencies glitched |
| 04/01/2010 | Workaround for JSFL shape selection bug? |
Flash Cookbooks |
More |
| 02/13/2012 | Randomize an array |
|---|---|
| 02/11/2012 | How to create a Facebook fan page with Flash |
| 02/08/2012 | Digital Clock |
| 01/18/2012 | Recording webcam video & audio in a flv file on local drive |