window.runtime property | window.runtime.flash.net.URLVariables |
Inheritance | URLVariables Object |
Runtime Versions: | AIR 1.0, |
data
property
of the URLRequest class, and with flash.net package
functions.
See also
Public Methods
Method | Defined 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 | ||
hasOwnProperty(name:String):Boolean
Indicates whether an object has a specified property defined. | Object | ||
isPrototypeOf(theClass:Object):Boolean
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
propertyIsEnumerable(name:String):Boolean
Indicates whether the specified property exists and is enumerable. | Object | ||
setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void
Sets the availability of a dynamic property for loop operations. | Object | ||
toLocaleString():String
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
toString():String
Returns a string containing all enumerable variables,
in the MIME content encoding application/x-www-form-urlencoded. | URLVariables | ||
valueOf():Object
Returns the primitive value of the specified object. | Object |
Constructor Detail
URLVariables | () | Constructor |
public function URLVariables(source:String = null)
Runtime Versions: | AIR 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.
source:String (default = null ) — A URL-encoded string containing name/value pairs.
|
Method Detail
decode | () | method |
public function decode(source:String):void
Runtime Versions: | AIR 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
Error — The source parameter must be a URL-encoded query
string containing name/value pairs.
|
See also
toString | () | method |
public function toString():String
Runtime Versions: | AIR 1.0, |
Returns a string containing all enumerable variables, in the MIME content encoding application/x-www-form-urlencoded.
ReturnsString — A URL-encoded string containing name/value pairs.
|
Thu Sep 29 2011, 02:34 AM -07:00