94
Server-Side ActionScript Language Reference
Returns
A Boolean value indicating success (
true
) or failure (
false
).
Description
Method; downloads variables from the specified URL, parses the variable data, and places the
resulting variables into a LoadVars object (
myLoadVars
). You can load variables from a remote
URL or from a URL in the local file system; the same encoding standards apply to both.
Any properties in the
myLoadVars
object that have the same names as downloaded variables
are overwritten. The downloaded data must be in the MIME content type and be
application/
x-www-urlform-encoded
.
The
LoadVars.load()
method call is asynchronous.
Example
The following code defines an
onLoad
handler function that signals when data is returned:
var my_lv = new LoadVars();
my_lv.onLoad = function(success) {
if (success) {
trace(this.toString());
} else {
trace("Error loading/parsing LoadVars.");
}
};
my_lv.load("http://www.helpexamples.com/flash/params.txt");
LoadVars.loaded
Availability
Flash Media Server 2.
Usage
myLoadVars
.loaded
Description
Property; a Boolean value that indicates whether a
LoadVars.load()
or
LoadVars.sendAndLoad()
operation has completed (
true
) or not (
false
).