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
mc
to 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
Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.