Name
MovieClip.loadVariables( ) Method — retrieve an external set of variables
Availability
Method form introduced in Flash 5 (global form supported by Flash 4 and later)
Synopsis
mc.loadVariables(URL) mc.loadVariables(URL, method)
Arguments
- URL
A string specifying the path to one of two variable sources: a script that produces variables as output or a text file containing variables.
- method
An optional string literal indicating the method by which to send the variables from
mcto an external script. If specified, variables are both sent and loaded. If omitted, variables are loaded only. Must be either the literal"GET"or"POST"; no other expression is allowed.
Description
The MovieClip.loadVariables( ) method is an
alternative to the global loadVariables( )
function. When invoked as a MovieClip method,
loadVariables( ) takes no
target parameter; it loads the variables
at URL into mc.
The method syntax is less prone to user error than its global
function counterpart.
For usage instructions, see the global loadVariables(
) function.
See Also
loadVariables( ); Section 13.8.3.1 in Chapter 13
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access