Load(); Loadvars Class - MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference

Server-side actionscript language reference
Table of Contents

Advertisement

load()

Availability
Flash Communication Server MX 1.0.
Usage
load(filename)
Parameters
The relative path to an ActionScript file from the main.asc file.
filename
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()
main.asc. This method is useful for loading ActionScript libraries.
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.
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
handler to ensure that your application runs when data is loaded, and not
LoadVars.onLoad
before.
is executed. The path of the specified file is resolved, relative to
LoadVars class
87

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash media server 2

Table of Contents