MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference page 728

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

You can define a custom function that executes when the
event handler of the XML
onLoad
object is invoked.
Availability: ActionScript 1.0; Flash Lite 2.0 - Behavior changed in Flash Player 7.
Parameters
- A string that represents the URL where the XML document to be loaded is
url:String
located. If the SWF file that issues this call is running in a web browser,
must be in the
url
same domain as the SWF file; for details, see the Description section.
Returns
-
if no parameter (null) is passed;
otherwise. Use the
event
Boolean
false
true
onLoad()
handler to check the success of a loaded XML document.
Example
The following simple example uses the
method:
XML.load()
// create a new XML object
var flooring:XML = new XML();
// set the ignoreWhite property to true (default value is false)
flooring.ignoreWhite = true;
// After loading is complete, trace the XML object
flooring.onLoad = function(success) {
trace(flooring);
};
// load the XML into the flooring object
flooring.load("flooring.xml");
For the contents of the flooring.xml file, and the output that this example produces, see the
example for
.
XML.ignoreWhite
See also
,
,
ignoreWhite (XML.ignoreWhite property)
loaded (XML.loaded property)
onLoad
(XML.onLoad handler)
728
ActionScript classes

Advertisement

Table of Contents
loading

Table of Contents