MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuale Utente Pagina 119

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 118
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
116
Event handler summary
XML constructor
new XML([source])
Creates a new XML object. You must use the constructor to create an XML object before you call any of the XML
class methods.
Note: Use the
createElement() and createTextNode() methods to add elements and text nodes to an XML
document tree.
Availability
Flash Media Server 2
Parameters
source A string; the XML text to parse to create the new XML object.
Returns
A reference to an XML object.
Example
The following example creates a new, empty XML object:
var my_xml = new XML();
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:
var other_xml = new XML("<state name=\"California\"><city>San Francisco</city></state>");
See also
XML.createElement(), XML.createTextNode()
XML.addRequestHeader()
my_xml.addRequestHeader(headerName, headerValue)
my_xml.addRequestHeader([headerName_1, headerValue_1 ... headerName_n, headerValue_n])
Adds or changes HTTP request headers (such as Content-Type or SOAPAction) that are sent with POST actions. In
the first usage, you pass two strings,
headerName and headerValue, to the method. 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.
Event handler Description
XML.onData() Invoked when XML text has been completely downloaded from the server or when an error
occurs in downloading XML text from a server.
XML.onHTTPStatus() Invoked when Flash Media Interactive Server receives an HTTP status code from the server.
XML.onLoad() Invoked when an XML document is received from the server.
Vedere la pagina 118
1 2 ... 114 115 116 117 118 119 120 121 122 123 124 ... 154 155

Commenti su questo manuale

Nessun commento