Loadvariablesnum() - 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

To load variables into a specific level, use the
function.
loadVariables()
Example
The following examples load variables from a text file and from a server:
// load variables from text file on local file system (Symbian Series 60)
on(release, keyPress "1") {
filePath = "file://c:/documents/flash/myApp/myvariables.txt";
loadVariables(filePath, _root);
}
// load variables (from server) into a movieclip
urlPath = "http://www.someserver.com/myvariables.txt";
loadVariables(urlPath, "myClip_mc");
See also
loadMovieNum(),

loadVariablesNum()

loadVariablesNum()
Availability
Flash Lite 1.1.
Usage
loadVariablesNum(url, level [, variables])
Operands
A string representing an absolute or relative URL where the variables to be loaded are
url
located. If the SWF file issuing this call is running in a web browser,
domain as the SWF file; for more information, see the following Description section.
An integer that specifies the level in Flash Lite to receive the variables.
level
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.
26
Flash Lite Global Functions
loadVariablesNum()
,
unloadMovie()
GET
method appends the variables to the end of the URL and is used
GET
method sends the variables in a separate HTTP
POST
function instead of the
url
or
. If there are no variables to be sent,
POST
must be in the same

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?

Table of Contents