Loadvariables() - MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 1.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Use
unloadMovieNum()
.
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()

loadVariables()

Availability
Flash Lite 1.1.
Usage
loadVariables(url, target [, variables])
Operands
A string representing an absolute or relative URL where the variables are located. If the
url
SWF file issuing this call is running in a web browser,
the SWF file.
The target path to a movie clip that receives the loaded variables.
target
An optional string parameter specifying an HTTP method for sending
variables
variables. The parameter must be the string
omit this parameter. The
for small numbers of variables. The
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
to remove SWF files or images that were loaded with
,
unloadMovieNum()
GET
method appends the variables to the end of the URL and is used
GET
method sends the variables in a separate HTTP
POST
must be in the same domain as
url
or
. If there are no variables to be sent,
POST
loadVariables()
25

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents