window.runtime propertywindow.runtime.flash.net.URLVariables
Runtime Versions:  1.0

The URLVariables class allows you to transfer variables between an application and a server. Use URLVariables objects with methods of the URLLoader class, with the data property of the URLRequest class, and with flash.net package functions.

See also

URLLoader


Public Methods
 MethodDefined By
  
URLVariables(source:String = null)
Creates a new URLVariables object.
URLVariables
  
decode(source:String):void
Converts the variable string to properties of the specified URLVariables object.
URLVariables
  
Returns a string containing all enumerable variables, in the MIME content encoding application/x-www-form-urlencoded.
URLVariables
Constructor Detail
URLVariables()Constructor
function URLVariables(source:String = null)
Runtime Versions:  1.0

Creates a new URLVariables object. You pass URLVariables objects to the data property of URLRequest objects.

If you call the URLVariables constructor with a string, the decode() method is automatically called to convert the string to properties of the URLVariables object.

Parameters
source:String (default = null) — A URL-encoded string containing name/value pairs.
Method Detail
decode()method
function decode(source:String):void
Runtime Versions:  1.0

Converts the variable string to properties of the specified URLVariables object.

This method is used internally by the URLVariables events. Most users do not need to call this method directly.

Parameters

source:String — A URL-encoded query string containing name/value pairs.


Throws
— The source parameter must be a URL-encoded query string containing name/value pairs.
toString()method 
function toString():String
Runtime Versions:  1.0

Returns a string containing all enumerable variables, in the MIME content encoding application/x-www-form-urlencoded.

Returns
String — A URL-encoded string containing name/value pairs.