XML.removeNode()
Availability
Flash Player 5.
Usage
my_xml.removeNode() : Void
Parameters
None.
Returns
Nothing.
Description
Method; removes the specified XML object from its parent. Also deletes all descendants of the
node.
Example
The following example creates an XML packet, and then deletes the specified XML object and its
descendant nodes:
var xml_str:String = "<state name=\"California\">
<city>San Francisco</city></state>";
var my_xml:XML = new XML(xml_str);
var cityNode:XMLNode = my_xml.firstChild.firstChild;
trace("before XML.removeNode():\n"+my_xml);
cityNode.removeNode();
trace("");
trace("after XML.removeNode():\n"+my_xml);
/* output (line breaks added for clarity):
before XML.removeNode():
<state name="California">
<city>San Francisco</city>
</state>
after XML.removeNode():
<state name="California" />
*/
XML.send()
Availability
Flash Player 5.
Usage
my_xml.send(url:String, [window:String]) : Void
474
Chapter 6: ActionScript Core Classes
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?