Understanding ActionScript > Using the Actions panel > Using an external editor
Using an external editor
Although the Actions panel's Expert Mode gives you more control when editing ActionScript, you can also choose to edit a script outside Flash. You can then use the include
action to add the scripts you wrote in the external editor to a script within Flash.
For example, the following statement imports a script file:
#include "externalfile.as"
The text of the script file replaces the include
action. The text file must be present when the movie is exported.
To add the scripts written in an external editor to a script within Flash:
1 | Drag include from the Toolbox list to the Script window. |
2 | Enter the path to the external file in the Path box. |
The path should be relative to the FLA file. For example, if myMovie.fla and externalfile.as were in the same folder, the path would be externalfile.as. If externalfile.as was in a subfolder called Scripts, the path would be scripts/externalfile.as. | |
![]() |