
764
Chapter 12: ActionScript Dictionary
When
load()
is executed, the XML object property
loaded
is set to
false
. When the XML data
finishes downloading, the
loaded
property is set to
true
, and the
onLoad()
method is invoked.
The XML data is not parsed until it is completely downloaded. If the XML object previously
contained any XML trees, they are discarded.
You can specify your own event handler in place of the
onLoad()
method.
Example
The following is a simple example using
XML.load()
:
doc = new XML();
doc.load ("theFile.xml");
See also
XML.loaded
,
XML.onLoad()
XML.loaded
Availability
Flash Player 5.
Usage
my_xml
.loaded
Description
Property (read-only); determines whether the document-loading process initiated by the
XML.load()
call has completed. If the process completes successfully, the method returns
true
;
otherwise, it returns
false
.
Example
The following example uses
XML.loaded
in a simple script.
if (doc.loaded) {
gotoAndPlay(4);
}
XML.nextSibling
Availability
Flash Player 5.
Usage
my_xml
.nextSibling
Description
Property (read-only); evaluates the XML object and references the next sibling in the parent
node’s child list. This method returns
null
if the node does not have a next sibling node. This is
a read-only property and cannot be used to manipulate child nodes. Use
appendChild()
,
insertBefore()
, and
removeNode()
to manipulate child nodes.
See also
XML.appendChild()
,
XML.insertBefore()
,
XML.removeNode()
Содержание FLASH MX 2004 - ACTIONSCRIPT
Страница 1: ...ActionScript Reference Guide...
Страница 8: ...8 Contents...
Страница 12: ......
Страница 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Страница 54: ...54 Chapter 2 ActionScript Basics...
Страница 80: ...80 Chapter 3 Writing and Debugging Scripts...
Страница 82: ......
Страница 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Страница 112: ......
Страница 120: ...120 Chapter 6 Using the Built In Classes...
Страница 176: ......
Страница 192: ...192 Chapter 10 Working with External Data...
Страница 202: ...202 Chapter 11 Working with External Media...
Страница 204: ......
Страница 782: ...782 Chapter 12 ActionScript Dictionary...
Страница 793: ...Other keys 793 221 222 Key Key code...
Страница 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Страница 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Страница 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Страница 816: ...816 Index...