ActionScript 2.0 Language Reference |
|
|
|
| ActionScript classes > LoadVars > toString (LoadVars.toString method) | |||
public toString() : String
Returns a string containing all enumerable variables in my_lv, in the MIME content encoding application/x-www-form-urlencoded.
Availability: ActionScript 1.0; Flash Player 6
String - A string.
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:LoadVars = new LoadVars(); my_lv.name = "Gary"; my_lv.age = 26; trace (my_lv.toString()); //output: age=26&name=Gary
|
|
|
|