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

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 145
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
143
Encodes the specified XML object into an XML document, sends it to the specified URL using the HTTP POST
method, downloads the servers response, and loads it into the
targetXMLobject object. The server response loads
the same as the response to the
XML.load() method.
When
sendAndLoad() is executed, the loaded property is set to false. When the XML data finishes loading
successfully, and the
onLoad() event handler is invoked. The XML data is not parsed until it is completely
downloaded. If the XML object previously contained any XML trees, they are discarded.
Availability
Flash Media Server 2
Parameters
url A string; the destination URL for the specified XML object. If the SWF file issuing this call is running in a web
browser,
url must be in the same domain as the SWF file.
targetXMLobject An XML object created with the XML constructor method that will receive the return infor-
mation from the server.
Returns
A boolean value;
true if successful, otherwise, false.
XML.status
my_xml.status
A number indicating whether an XML document was successfully parsed into an XML object. The following table
contains the numeric status codes and their descriptions:
Availability
Flash Media Server 2
Example
The following example loads an XML packet into a SWF file. A status message indicates whether the XML is loaded
and parsed successfully.
var my_xml = new XML();
Status code Description
0 No error; parse was completed successfully.
-2 A CDATA section was not properly terminated.
-3 The XML declaration was not properly terminated.
-4 The DOCTYPE declaration was not properly terminated.
-5 A comment was not properly terminated.
-6 An XML element was malformed.
-7 Out of memory.
-8 An attribute value was not properly terminated.
-9 A start tag was not matched with an end tag.
-10 An end tag was encountered without a matching start tag.
Vedere la pagina 145
1 2 ... 141 142 143 144 145 146 147 148 149 150 151 ... 154 155

Commenti su questo manuale

Nessun commento