Description
Method; converts the query string to properties of the specified LoadVars object.
This method is used internally by the
event handler. Most users do not
LoadVars.onData
need to call this method directly. If you override the
event handler, you
LoadVars.onData
can explicitly call
to parse a string of variables.
LoadVars.decode()
Example
The following example traces the three variables:
// Create a new LoadVars object
var my_lv = new LoadVars();
//Convert the variable string to properties
my_lv.decode("name=Mort&score=250000");
trace(my_lv.toString());
// Iterate over properties in my_lv
for (var prop in my_lv) {
trace(prop+" -> "+my_lv[prop]);
}
LoadVars.getBytesLoaded()
Availability
Flash Media Server 2.
Usage
myLoadVars.getBytesLoaded()
Parameters
None.
Returns
A Number object.
Description
Method; returns the number of bytes loaded from the last or current
or
LoadVars.load()
method call.
LoadVars.sendAndLoad()
The value of the
property does not affect the value of
.
contentType
getBytesLoaded()
See also
LoadVars.getBytesTotal()
92
Server-Side ActionScript Language Reference
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?