Actions using External Scripts

Page 1 of 1
Jesse Stratford
Jesse lives and works in Melbourne Australia. He is the Cofounder and a Director of http://ActionScript.org. A Flash enthusiast, teacher, author, freelancer and speaker Jesse enjoys participating in the http://ActionScript.org community and the wider Flash scene when he has time.
View all articles by Jesse StratfordRequirements: Flash 5 and above. If you have code which you use repeatedly across multiple files, you can save time by writing it once and using the include action. This action is also very useful when working as part of a team or on large projects, as large amounts of scripting in the Actions Panel can reduce Flash's performance (at edit time).
You can write your script in any plain text editor and save it with .as extension (recommended but not necessary).
To include the code in your external source file use:
#include "myscript.as"
Spread The Word
Related Articles
1 Response to "Actions using External Scripts" 
|
said this on 19 Aug 2007 6:02:23 AM CDT
Simple as that, but invaluable to a beginner.
|


Author/Admin)