📄 actionscript_dictionary827.html
字号:
</tr><tr valign="bottom"><td align="left" valign="top" colspan="2"><!-- #BeginEditable "header" --><table border="0" cellspacing="0" cellpadding="0"><tr align="left" valign="top"> <td> <img src="/support/flash/images/h1_icon.gif" width="55" height="45" alt="Flash Icon"></td><td><img src="/support/flash/images/h1_as_dictionary.gif" width="282" height="58" alt="Macromedia Flash Support Center - ActionScript dictionary"></td></tr></table><!-- #EndEditable --></td></tr></table><!-- InstanceEndEditable --></td> </tr> </table> <table width="754" border="0" cellspacing="0" cellpadding="0" summary="main body"> <tr align="left" valign="top"> <td><img src="/images/pixel.gif" width="745" height="8" alt=""></td> <td><img src="/images/pixel.gif" width="5" height="8" alt=""></td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr align="left" valign="top"> <td width="6%"><img src="/images/pixel.gif" width="60" height="20" alt=""></td> <td width="94%"> <table width="80%" border="0" cellspacing="0" cellpadding="0"> <tr><td align="left" valign="top"><!-- InstanceBeginEditable name="content" -->
<span class="heading1">XML (object) </span><p>
<span class="mmbody">Use the methods and properties of the XML object to load, parse, send, build, and manipulate XML document trees. In Flash MX, the XML object has become a native object. As such, you will experience dramatic improvement in performance.</span><p>
<span class="mmbody">You must use the constructor </span> <code>new XML()</code> <span class="mmbody"> to create an instance of the XML object before calling any of the methods of the XML object. </span><p>
<span class="mmbody">XML is supported by Flash Player 5 and Flash Player 6.</span><p>
<a name="250013"> </a><br>
<span class="heading2">Method summary for the XML object<p>
<table width="97%" border="0" cellpadding="6" cellspacing="0">
<tr bgcolor="" valign=top>
<td><font color="ffffff"><span class="mmbody"><b>Method</b></span></font></td>
<td><font color="ffffff"><span class="mmbody"><b>Description</b></span></font></td>
</tr>
<tr bgcolor="#EEEEEE" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary828.html">XML.appendChild</a></span></td>
<td><p><span class="mmbody">Appends a node to the end of the specified object's child list.</span></td>
</tr>
<tr bgcolor="#FFFFFF" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary831.html">XML.cloneNode</a></span></td>
<td><p><span class="mmbody">Clones the specified node and, optionally, recursively clones all children.</span></td>
</tr>
<tr bgcolor="#EEEEEE" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary833.html">XML.createElement</a></span></td>
<td><p><span class="mmbody">Creates a new XML element.</span></td>
</tr>
<tr bgcolor="#FFFFFF" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary834.html">XML.createTextNode</a></span></td>
<td><p><span class="mmbody">Creates a new XML text node.</span></td>
</tr>
<tr bgcolor="#EEEEEE" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary837.html">XML.getBytesLoaded</a></span></td>
<td><p><span class="mmbody">Returns the number of bytes loaded for the specified XML document.</span></td>
</tr>
<tr bgcolor="#FFFFFF" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary838.html">XML.getBytesTotal</a></span></td>
<td><p><span class="mmbody">Returns the size of the XML document in bytes.</span></td>
</tr>
<tr bgcolor="#EEEEEE" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary839.html">XML.hasChildNodes</a></span></td>
<td><p><span class="mmbody">Returns </span> <code>true</code> <span class="mmbody"> if the specified node has child nodes; otherwise, returns false.</span></td>
</tr>
<tr bgcolor="#FFFFFF" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary841.html">XML.insertBefore</a></span></td>
<td><p><span class="mmbody">Inserts a node in front of an existing node in the specified node's child list.</span></td>
</tr>
<tr bgcolor="#EEEEEE" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary843.html">XML.load</a></span></td>
<td><p><span class="mmbody">Loads a document (specified by the XML object) from a URL.</span></td>
</tr>
<tr bgcolor="#FFFFFF" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary852.html">XML.parseXML</a></span></td>
<td><p><span class="mmbody">Parses an XML document into the specified XML object tree.</span></td>
</tr>
<tr bgcolor="#EEEEEE" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary854.html">XML.removeNode</a></span></td>
<td><p><span class="mmbody">Removes the specified node from its parent.</span></td>
</tr>
<tr bgcolor="#FFFFFF" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary855.html">XML.send</a></span></td>
<td><p><span class="mmbody">Sends the specified XML object to a URL.</span></td>
</tr>
<tr bgcolor="#EEEEEE" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary856.html">XML.sendAndLoad</a></span></td>
<td><p><span class="mmbody">Sends the specified XML object to a URL and loads the server response into another XML object.</span></td>
</tr>
<tr bgcolor="#FFFFFF" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary858.html">XML.toString</a></span></td>
<td><p><span class="mmbody">Converts the specified node and any children to XML text.</span></td>
</tr>
</table>
<br>
</span><br>
<a name="250118"> </a><br>
<span class="heading2">Property summary for the XML object<p>
<table width="97%" border="0" cellpadding="6" cellspacing="0">
<tr bgcolor="" valign=top>
<td><font color="ffffff"><span class="mmbody"><b>Property</b></span></font></td>
<td><font color="ffffff"><span class="mmbody"><b>Description</b></span></font></td>
</tr>
<tr bgcolor="#EEEEEE" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary832.html">XML.contentType</a></span></td>
<td><p><span class="mmbody">Indicates the MIME type transmitted to the server.</span></td>
</tr>
<tr bgcolor="#FFFFFF" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary835.html">XML.docTypeDecl</a></span></td>
<td><p><span class="mmbody">Sets and returns information about an XML document's DOCTYPE declaration.</span></td>
</tr>
<tr bgcolor="#EEEEEE" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary836.html">XML.firstChild</a></span></td>
<td><p><span class="mmbody">References the first child in the list for the specified node.</span></td>
</tr>
<tr bgcolor="#FFFFFF" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary840.html">XML.ignoreWhite</a></span></td>
<td><p><span class="mmbody">When set to true, text nodes that only contain white space are discarded during the parsing process.</span></td>
</tr>
<tr bgcolor="#EEEEEE" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary842.html">XML.lastChild</a></span></td>
<td><p><span class="mmbody">References the last child in the list for the specified node.</span></td>
</tr>
<tr bgcolor="#FFFFFF" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary843.html">XML.load</a></span></td>
<td><p><span class="mmbody">Checks if the specified XML object has loaded.</span></td>
</tr>
<tr bgcolor="#EEEEEE" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary845.html">XML.nextSibling</a></span></td>
<td><p><span class="mmbody">References the next sibling in the parent node's child list.</span></td>
</tr>
<tr bgcolor="#FFFFFF" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary846.html">XML.nodeName</a></span></td>
<td><p><span class="mmbody">Returns the tag name of an XML element.</span></td>
</tr>
<tr bgcolor="#EEEEEE" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary847.html">XML.nodeType</a></span></td>
<td><p><span class="mmbody">Returns the type of the specified node (XML element or text node).</span></td>
</tr>
<tr bgcolor="#FFFFFF" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary848.html">XML.nodeValue</a></span></td>
<td><p><span class="mmbody">Returns the text of the specified node if the node is a text node.</span></td>
</tr>
<tr bgcolor="#EEEEEE" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary851.html">XML.parentNode</a></span></td>
<td><p><span class="mmbody">References the parent node of the specified node.</span></td>
</tr>
<tr bgcolor="#FFFFFF" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary853.html">XML.previousSibling</a></span></td>
<td><p><span class="mmbody">References the previous sibling in the parent node's child list.</span></td>
</tr>
<tr bgcolor="#EEEEEE" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary857.html">XML.status</a></span></td>
<td><p><span class="mmbody">Returns a numeric status code indicating the success or failure of an XML document parsing operation.</span></td>
</tr>
<tr bgcolor="#FFFFFF" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary859.html">XML.xmlDecl</a></span></td>
<td><p><span class="mmbody">Sets and returns information about an XML document's document declaration.</span></td>
</tr>
</table>
<br>
</span><br>
<a name="250139"> </a><br>
<span class="heading2">Collections summary for the XML object<p>
<table width="97%" border="0" cellpadding="6" cellspacing="0">
<tr bgcolor="" valign=top>
<td><font color="ffffff"><span class="mmbody"><b>Method</b></span></font></td>
<td><font color="ffffff"><span class="mmbody"><b>Description</b></span></font></td>
</tr>
<tr bgcolor="#EEEEEE" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary829.html">XML.attributes</a></span></td>
<td><p><span class="mmbody">Returns an associative array containing all of the attributes of the specified node.</span></td>
</tr>
<tr bgcolor="#FFFFFF" valign=top>
<td><p><span class="mmbody"><a href="actionscript_dictionary830.html">XML.childNodes</a></span></td>
<td><p><span class="mmbody">Returns an array containing references to the child nodes of the specified node.</span></td>
</tr>
</table>
<br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -