ActionScript provides an include directive to include the source of one file inside another:
include "[path]filename.as"
Includes the contents of the specified file, as if the commands in the file were part of the calling script.
(You can also see that it is used as #include , but # not required with ActionScript 2.)
source share