load(filename)
Loads a Server-Side ActionScript file (ASC) or JavaScript file (JS) into the main.asc file. Call this function to load ActionScript libraries. The loaded file is compiled and executed after the main.asc file is successfully loaded, compiled, and executed, but before application.onAppStart() is called. The path of the specified file is resolved relative to the main.asc file.
Flash Communication Server 1
filename A string indicating the relative path to a script file from the main.asc file.
The following example loads the myLoadedFile.asc file:
load("myLoadedFile.asc");