MovieClip.loadVariables( ) Method | Flash 5 |
retrieve an external set of variables |
A string specifying the path to one of two variable sources: a script that produces variables as output, or a text file containing variables.
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.
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 MovieClip method syntax is less prone to user error than its global function counterpart because no target parameter is required.
For usage instructions, see the global loadVariables( ) function. As of Flash 6, the LoadVars class is preferred over MovieClip.loadVariables( ), as it provides a more flexible and powerful means of importing and exporting variables.
loadVariables( ), the LoadVars class; Section 13.7