User Guide

100 Server-Side ActionScript Language Reference
Description
Method; posts the variables in the myLoadVars object to the specified URL. The server
response is downloaded, parsed as variable data, and the resulting variables are placed in the
target object. Variables are posted in the same way as LoadVars.send(). Variables are
downloaded into
target in the same way as LoadVars.load().
See also
LoadVars.send()
LoadVars.toString()
Availability
Flash Media Server 2.
Usage
myLoadVars.toString()
Parameters
None.
Returns
A string.
Description
Method; returns a string containing all enumerable variables in myLoadVars, in the MIME
content encoding application/x-www-form-urlencoded.
Example
The following example instantiates a new LoadVars() object, creates two properties, and uses
toString() to return a string containing both properties in URL-encoded format:
var my_lv = new LoadVars();
my_lv.name = "Gary";
my_lv.age = 26;
trace (my_lv.toString());
//output: age=26&name=Gary