
LoadVars class
87
load()
Availability
Flash Communication Server MX 1.0.
Usage
load(
filename
)
Parameters
filename
The relative path to an ActionScript file from the main.asc file.
Returns
Nothing.
Description
Method (global); loads an ActionScript file in the main.asc file. This method executes only
when the ActionScript file is loaded first. The loaded file is compiled and executed after the
main.asc file is successfully loaded, compiled, and executed, but before
application.onAppStart()
is executed. The path of the specified file is resolved, relative to
main.asc. This method is useful for loading ActionScript libraries.
Example
The following example loads the myLoadedFile.as file:
load("myLoadedFile.as");
LoadVars class
Availability
Flash Media Server 2.
The LoadVars class lets you send all the variables in an object to a specified URL and to load
all the variables at a specified URL into an object. It also lets you send specific variables, rather
than all variables, which can make your application more efficient. You can use the
LoadVars.onLoad
handler to ensure that your application runs when data is loaded, and not
before.
NO
TE
For security reasons, your server-side applications directory, which contains ASC files,
audio/video FLV files, and ActionScript FLA source files, should not be accessible to
users who are browsing your website.