Example
The following code example uses the
// 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 the
XML.ignoreWhite
See also
ignoreWhite (XML.ignoreWhite property)
(XML.onLoad handler)
loaded (XML.loaded property)
public loaded : Boolean
The property that indicates whether the XML document has successfully loaded. If there is no
custom
event handler defined for the XML object, Flash Player sets this property to
onLoad()
when the document-loading process initiated by the
true
successfully; otherwise, it is
event handler for the XML object, you must be sure to set
onLoad()
Availability: ActionScript 1.0; Flash Player 5
Example
The following example uses the
var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success:Boolean) {
trace("success: "+success);
trace("loaded: "+my_xml.loaded);
trace("status: "+my_xml.status);
};
my_xml.load("http://www.flash-mx.com/mm/problems/products.xml");
XML.load()
property.
,
useCodepage (System.useCodepage property)
. However, if you define a custom behavior for the
false
property in a simple script.
XML.loaded
method:
,
loaded (XML.loaded property)
XML.load()
,
onLoad
call has completed
in that function.
onload
XML
1301
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?