User Guide

Table Of Contents
loadVariables() 25
Use unloadMovieNum() to remove SWF files or images that were loaded with
loadMovieNum().
Example
The following example loads the SWF file into level 2:
loadMovieNum("http://www.someserver.com/flash/circle.swf", 2);
See also
_level, loadMovie(), unloadMovieNum()
loadVariables()
Availability
Flash Lite 1.1.
Usage
loadVariables(url, target [, variables])
Operands
url A string representing an absolute or relative URL where the variables 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.
target The target path to a movie clip that receives the loaded 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, Active Server Pages (ASP), PHP, or Perl script, and sets the values for
variables in a target movie clip. 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. For example, the following phrase defines several variables:
company=Macromedia&address=600+Townsend&city=San+Francisco&zip=94103