
LoadVars Class
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
575
"POST". This parameter must be a literal, not a variable or other expression.
On Windows, prior to Flash 6, the Standalone Player always used the
"GET"
method, regardless of the method specified. As of Flash 6, both "GET" and
"POST" are supported. See Appendix F.
Description
The loadVariablesNum( ) function is nearly identical to loadVariables( ), except that it
requires the target
level to be specified as a number rather than as a string. This means
that loadVariablesNum( ) can attach variables to document levels only, not movie clips. The
target
level can be specified dynamically, as in:
var myLevel = 2;
loadVariablesNum("myVars.txt", myLevel);
A similar effect can be achieved using string concatenation with the regular loadVariables( )
function:
loadVariables("myVars.txt", "_level" + myLevel);
See Also
loadVariables( )
LoadVars Class
export variables to, or import variables from, an external source
Flash 6
Constructor
new LoadVars()
Properties
contentType The MIME content type used for send( ) and sendAndLoad( ) operations.
loaded Status of a load( ) or sendAndLoad( ) operation.
Methods
decode( ) Convert a URL-encoded string of variables to properties.
getBytesLoaded( )
Check what portion of loading variables has arrived, in bytes.
getBytesTotal( ...