Example
Usage 1: The following example creates an new, empty XML object.
my_xml = new XML();
Usage 2: The following example creates an XML object by parsing the XML text specified in the
parameter, and populates the newly created XML object with the resulting XML
source
document tree.
anyOtherXML = new XML("<state>California<city>san francisco</city></state>");
See also
XML.createElement()
XML.addRequestHeader()
Availability
Flash Player 6.
Usage
xml.addRequestHeader(headerName, headerValue)
xml.addRequestHeader(["headerName_1", "headerValue_1" ... "headerName_n",
"headerValue_n"])
Parameters
An HTTP request header name.
headerName
headerValue
Returns
Nothing.
Description
Method; adds or changes HTTP request headers (such as
with
actions. In the first usage, you pass two strings to the method:
POST
. In the second usage, you pass an array of strings, alternating header names and
headerValue
header values.
If multiple calls are made to set the same header name, each successive value replaces the value set
in the previous call.
You cannot add or change the following standard HTTP headers using this method:
,
,
Ranges
Age
Allow
,
,
Range
ETag
Host
Authorization
,
,
Upgrade
URI
Vary
754
Chapter 12: ActionScript Dictionary
,
XML.createTextNode()
The value associated with
,
,
Allowed
Connection
,
,
Last-Modified
Locations
,
,
,
Public
Range
Retry-After
,
,
, and
Via
Warning
.
headerName
Content-Type
,
Content-Length
,
Max-Forwards
,
,
,
Server
TE
Trailer
.
WWW-Authenticate
or
SOAPAction
headerName
,
,
Content-Location
,
Proxy-Authenticate
,
Transfer-Encoding
) sent
and
Accept-
Content-
,
Proxy-
,
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?