
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
128
</house>
*/
If you change the setting of flooring.ignoreWhite to false, or simply remove that line of code entirely, the 14
space characters in the
foyer tag are preserved:
...
// Set the ignoreWhite property to false (the default value).
flooring.ignoreWhite = false;
...
/* output (line breaks added for clarity):
<house>
<kitchen> ceramic tile </kitchen>
<bathroom>linoleum</bathroom>
<foyer></foyer>
</house>
*/
XML.insertBefore()
my_xml.insertBefore(childNode, beforeNode)
Inserts a new child node into the XML object’s child list, before the beforeNode node. If beforeNode is not a child
of
my_xml, the insertion fails.
Availability
Flash Media Server 2
Parameters
childNode The XMLNode object to be inserted.
beforeNode The XMLNode object before the insertion point for the childNode node.
Returns
A boolean value;
true if successful; otherwise, false.
Example
The following example is an excerpt from the
XML.cloneNode() example:
// Create a copy of the middle node by using cloneNode().
var middle2 = middle.cloneNode(false);
// Insert the clone node into rootNode
// between the middle and youngest nodes.
rootNode.insertBefore(middle2, youngest);
XML.lastChild
my_xml.lastChild
Read-only; an XMLNode value that references the last child in the node’s child list. If the node does not have
children, the
XML.lastChild property is null. You cannot use this property to manipulate child nodes; use the
appendChild(), insertBefore(), and removeNode() methods instead.
Availability
Flash Media Server 2
Commenti su questo manuale