Create a new Flash document named flooring.fla and save it to the same directory as the XML
file. Place the following code into the main timeline:
// Create a new XML object.
var flooring = 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");
/* output (line breaks added for clarity):
<house>
<kitchen>ceramic tile</kitchen>
<bathroom>linoleum</bathroom>
</foyer>
</house>
*/
In Flash Media Server, the output of
file and Application inspector.
If you change the setting of
code entirely, the 14 space characters in the
...
// Set the ignoreWhite property to false (default value).
flooring.ignoreWhite = false;
...
/* output (line breaks added for clarity):
<house>
<kitchen>
ceramic tile
<bathroom>linoleum</bathroom>
<foyer>
</house>
*/
188
Server-Side ActionScript Language Reference
trace()
flooring.ignoreWhite
foyer
</kitchen>
</foyer>
statements appears in the application log
to
, or simply remove that line of
false
tag are preserved:
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?