MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 447

Actionscript language reference
Table of Contents

Advertisement

Constructor for the XML class
Availability
Flash Player 5.
Usage
new XML([source:String]) : XML
Parameters
A string; the XML text parsed to create the new XML object.
source
Returns
A reference to an XML object.
Description
Constructor; creates a new XML object. You must use the constructor to create an XML object
before you call any of the methods of the XML class.
Note: Use the
createElement()
an XML document tree.
Example
The following example creates a new, empty XML object:
var my_xml:XML = new XML();
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 document tree:
var other_xml:XML = new XML("<state name=\"California\">
<city>San Francisco</city></state>");
See also
XML.createElement(),
XML.addRequestHeader()
Availability
Flash Player 6.
Usage
my_xml.addRequestHeader(headerName:String, headerValue:String) : Void
my_xml.addRequestHeader(["headerName_1":String, "headerValue_1":String ...
"headerName_n":String, "headerValue_n":String]) : Void
Parameters
A string that represents an HTTP request header name.
headerName
headerValue
and
createTextNode()
XML.createTextNode()
A string that represents the value associated with
methods to add elements and text nodes to
headerName
XML.addRequestHeader()
source
.
447

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents