loadVariablesNum()

Availability

Flash Lite 1.1.

Usage

loadVariablesNum(url, level [, variables]) 

Operands

url A string representing an absolute or relative URL where the variables to be loaded are located. If the SWF file issuing this call is running in a web browser, url must be in the same domain as the SWF file; for more information, see the following Description section.

level An integer that specifies the level in Flash Lite to receive the variables.

variables An optional string parameter specifying an HTTP method for sending variables. The parameter must be the string GET or POST. If there are no variables to be sent, omit this parameter. The GET method appends the variables to the end of the URL and is used for small numbers of variables. The POST method sends the variables in a separate HTTP header and is used for long strings of variables.

Description

Function; reads data from an external file, such as a text file or text generated by a ColdFusion, CGI, ASP, PHP, or Perl script, and sets the values for variables in a Flash Lite level. This function can also update variables in the active SWF file with new values.

The text at the specified URL must be in the standard MIME format application/x-www-form-urlencoded (a standard format used by CGI scripts). Any number of variables can be specified. The following example phrase defines several variables:

company=Adobe&address=600+Townsend&city=San+Francisco&zip=94103

Normally, Flash Lite displays a single SWF file, and then closes. The loadVariablesNum() function lets you display several SWF files at once and switch among SWF files without loading another HTML document.

To load variables into a target movie clip, use the loadVariables() function instead of the loadVariablesNum() function.

See also

getURL(), loadMovie(), loadMovieNum(), loadVariables()