![MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference Download Page 1330](http://html.mh-extra.com/html/macromedia/flash-8-actionscript-2-0-language/flash-8-actionscript-2-0-language_reference_6875371330.webp)
1330 ActionScript classes
See also
getNamespaceForPrefix (XMLNode.getNamespaceForPrefix method)
,
getPrefixForNamespace (XMLNode.getPrefixForNamespace method)
nextSibling (XMLNode.nextSibling property)
public nextSibling : XMLNode [read-only]
An XMLNode value that references the next sibling in the parent node's child list. This
property is
null
if the node does not have a next sibling node. This property cannot be used
to manipulate child nodes; use the
appendChild()
,
insertBefore()
, and
removeNode()
methods to manipulate child nodes.
Availability:
ActionScript 1.0; Flash Player 5
Example
The following example is an excerpt from the example for the
XML.firstChild
property, and
shows how you can use the
XML.nextSibling
property to loop through an XML node's child
nodes:
for (var aNode:XMLNode = rootNode.firstChild; aNode != null; aNode =
aNode.nextSibling) {
trace(aNode);
}
See also
firstChild (XMLNode.firstChild property)
,
appendChild (XMLNode.appendChild
method)
,
insertBefore (XMLNode.insertBefore method)
,
removeNode
(XMLNode.removeNode method)
,
XML
nodeName (XMLNode.nodeName property)
public nodeName : String
A string representing the node name of the XML object. If the XML object is an XML
element (
nodeType == 1
),
nodeName
is the name of the tag that represents the node in the
XML file. For example,
TITLE
is the
nodeName
of an HTML
TITLE
tag. If the XML object is
a text node (
nodeType == 3
), nodeName is
null
.
Availability:
ActionScript 1.0; Flash Player 5
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...