LoadVars.onLoad
Availability
Flash Media Server 2.
Usage
myLoadVars.onLoad(success){}
Parameters
A Boolean value indicating whether the
success
success (
) or failure (
true
Description
Event handler; invoked when a
has completed. If the variables load successfully, the
variables were not received, or if an error occurred in receiving the response from the server,
the
parameter is
success
If the
parameter is
success
downloaded by the
LoadVars.load()
variables are available when the
This method is undefined by default, but you can define it by assigning it a callback function.
Example
The following example creates a new LoadVars object, attempts to load variables into it from
a remote URL, and prints the result:
myLoadVars = new LoadVars();
myLoadVars.onLoad = function(result){
trace("myLoadVars load success is " + result);
}
myLoadVars.load("http://www.someurl.com/somedata.txt");
LoadVars.send()
Availability
Flash Media Server 2.
Usage
myLoadVars.send(url [, target, method])
98
Server-Side ActionScript Language Reference
).
false
LoadVars.load()
.
false
, the
true
loadVarsObject
or
LoadVars.sendAndLoad()
handler is invoked.
onLoad
operation ended in
LoadVars.load()
or
LoadVars.sendAndLoad()
parameter is
success
is populated with variables
operation, and these
operation
. If the
true
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?