Packageflash.net
Classpublic final class URLRequest
InheritanceURLRequest Inheritance Object

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

The URLRequest class captures all of the information in a single HTTP request. URLRequest objects are passed to the load() methods of the Loader, URLStream, and URLLoader classes, and to other loading operations, to initiate URL downloads. They are also passed to the upload() and download() methods of the FileReference class.



Public Properties
 PropertyDefined By
  requestHeaders : Array
[requestHeaders description]
URLRequest
  AIR-only userAgent : String
Specifies the user-agent string to be used in the HTTP request.
URLRequest
Public Methods
 MethodDefined By
  
URLRequest(url:String = null)
Creates a URLRequest object.
URLRequest
 Inherited
_init():*
[static]
_init
 Inherited
AS3
 Inherited
init():*
[static]
init
 Inherited
AS3
 Inherited
AS3
Protected Methods
 MethodDefined By
 Inherited
[static]
protected
 Inherited
_setPropertyIsEnumerable(o:*, V:String, enumerable:Boolean):void
[static]
protected
Public Constants
 ConstantDefined By
 Inheritedlength : int = 1
[static]
length
Property Detail
requestHeadersproperty
requestHeaders:Array

[requestHeaders description]


Implementation
    public function get requestHeaders():Array
    public function set requestHeaders(value:Array):void
AIR-only userAgentproperty 
userAgent:String

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0

Specifies the user-agent string to be used in the HTTP request.


Implementation
    public function get userAgent():String
    public function set userAgent(value:String):void
Constructor Detail
URLRequest()Constructor
public function URLRequest(url:String = null)

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.0

Creates a URLRequest object. If System.useCodePage is true, the request is encoded using the system code page, rather than Unicode. If System.useCodePage is false, the request is encoded using Unicode, rather than the system code page.

Parameters
url:String (default = null) — The URL to be requested. You can set the URL later by using the url property.