
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
67
Parameters
url A string; the URL to which to upload variables.
target The LoadVars object that receives the downloaded variables.
method A string; the GET or POST method of the HTTP protocol. The default value is POST. This parameter is
optional.
Returns
A boolean value indicating success (
true) or failure (false).
LoadVars.toString()
myLoadVars.toString()
Returns a string containing all enumerable variables in myLoadVars, in the MIME content encoding application/x-
www-form-urlencoded.
Availability
Flash Media Server 2
Returns
A string.
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
Log class
The Log class lets you create a Log object that can be passed as an optional parameter to the constructor for the
WebService class. For more information, see WebService constructor.
Availability
Flash Media Server 2
Event handler summary
Log constructor
new Log([logLevel][, logName])
Creates a Log object that can be passed as an optional parameter to the constructor for the WebService class.
Event handler Description
Log.onLog() Invoked when a log message is sent to a log.
Commenti su questo manuale