Returns
A Boolean value indicating success (
Description
Method; downloads variables from the specified URL, parses the variable data, and places the
resulting variables into a LoadVars object (
URL or from a URL in the local file system; the same encoding standards apply to both.
Any properties in the
are overwritten. The downloaded data must be in the MIME content type and be application/
x-www-urlform-encoded.
The
LoadVars.load()
Example
The following code defines an
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.sendAndLoad()
94
Server-Side ActionScript Language Reference
) or failure (
true
myLoadVars
object that have the same names as downloaded variables
myLoadVars
method call is asynchronous.
handler function that signals when data is returned:
onLoad
operation has completed (
).
false
). You can load variables from a remote
or
LoadVars.load()
) or not (
true
false
).
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?