![MACROMEDIA Flash Lite 2 Скачать руководство пользователя страница 745](http://html1.mh-extra.com/html/macromedia/flash-lite-2/flash-lite-2_reference_687553745.webp)
XMLNode
745
// insert the clone node into rootNode between the middle and youngest nodes
rootNode.insertBefore(middle2, youngest);
trace(rootNode);
// output (with line breaks added):
// <rootNode>
// <oldest />
// <middle />
// <middle />
// <youngest />
// </rootNode>
// create a copy of rootNode using cloneNode() to demonstrate a deep copy
var rootClone:XMLNode = rootNode.cloneNode(true);
// insert the clone, which contains all child nodes, to rootNode
rootNode.appendChild(rootClone);
trace(rootNode);
// output (with line breaks added):
// <rootNode>
// <oldest />
// <middle />
// <middle />
// <youngest />
// <rootNode>
// <oldest />
// <middle />
// <middle />
// <youngest />
// </rootNode>
// </rootNode>
firstChild (XMLNode.firstChild property)
public firstChild :
XMLNode
[read-only]
Evaluates the specified XML object and references the first child in the parent node's child
list. This property is
null
if the node does not have children. This property is
undefined
if
the node is a text node. This is a read-only property and cannot be used to manipulate child
nodes; use the
appendChild()
,
insertBefore()
, and
removeNode()
methods to
manipulate child nodes.
Availability:
ActionScript 1.0; Flash Lite 2.0
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...