754
Chapter 12: ActionScript Dictionary
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
source
parameter, and populates the newly created XML object with the resulting XML
document tree.
anyOtherXML = new XML("<state>California<city>san francisco</city></state>");
See also
XML.createElement()
,
XML.createTextNode()
XML.addRequestHeader()
Availability
Flash Player 6.
Usage
xml
.addRequestHeader(
headerName
,
headerValue
)
xml
.addRequestHeader(["
headerName_1
", "
headerValue_1
" ... "
headerName_n
",
"
headerValue_n
"])
Parameters
headerName
An HTTP request header name.
headerValue
The value associated with
headerName
.
Returns
Nothing.
Description
Method; adds or changes HTTP request headers (such as
Content-Type
or
SOAPAction
) sent
with
POST
actions. In the first usage, you pass two strings to the method:
headerName
and
headerValue
. In the second usage, you pass an array of strings, alternating header names and
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:
Accept-
Ranges
,
Age
,
Allow
,
Allowed
,
Connection
,
Content-Length
,
Content-Location
,
Content-
Range
,
ETag
,
Host
,
Last-Modified
,
Locations
,
Max-Forwards
,
Proxy-Authenticate
,
Proxy-
Authorization
,
Public
,
Range
,
Retry-After
,
Server
,
TE
,
Trailer
,
Transfer-Encoding
,
Upgrade
,
URI
,
Vary
,
Via
,
Warning
, and
WWW-Authenticate
.
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...