loadVariables( ) Global Function — retrieve an external set of variables
Flash 4 and later
loadVariables(URL, target) loadVariables(URL, target, method)
A string specifying the path to a variable source—either a server-side script that returns variables or a text file containing variables.
A string indicating the path to the movie clip or document level on which the loaded variables will be defined. May also be a reference to a movie clip or document level (references are converted to paths when used in a string context).
An optional string indicating the method by which to send variables
to an external script. If specified, the variables from the current
timeline are sent to the script and
receives the loaded variables. If omitted, variables are retrieved
but none are sent. The legal values for
"POST". This parameter must be a literal, not a
variable or other expression. The standalone version of the Flash
Player always uses the
"GET" method regardless of
Normally, we define variables inside our movies using ActionScript.
loadVariables( ), we may also
import variables into a movie from a text file or a server-side
application such as a Perl script. Variables loaded via
loadVariables( ) are scoped to the movie clip or
level specified by
target and are always
of the string datatype. To attach loaded variables to the current timeline, use the empty string as the ...