736
ActionScript classes
case -4 :
errorMessage = "The DOCTYPE declaration was not properly terminated.";
break;
case -5 :
errorMessage = "A comment was not properly terminated.";
break;
case -6 :
errorMessage = "An XML element was malformed.";
break;
case -7 :
errorMessage = "Out of memory.";
break;
case -8 :
errorMessage = "An attribute value was not properly terminated.";
break;
case -9 :
errorMessage = "A start-tag was not matched with an end-tag.";
break;
case -10 :
errorMessage = "An end-tag was encountered without a matching
start-tag.";
break;
default :
errorMessage = "An unknown error has occurred.";
break;
}
trace("status: "+my_xml." ("+error")");
} else {
trace("Unable to load/parse XML. (status: "+my_xml.")");
}
};
my_xml.load("http://www.helpexamples.com/flash/badxml.xml");
XML constructor
public XML(text:
String
)
Creates a new XML object. You must use the constructor to create an XML object before you
call any of the methods of the XML class.
Note:
Use the
createElement()
and
createTextNode()
methods to add elements and text
nodes to an XML document tree.
Availability:
ActionScript 1.0; Flash Lite 2.0
Parameters
text
:
String
- A string; the XML text parsed to create the new XML object.
Summary of Contents for Flash Lite 2
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...