XML has changed for ActionScript 3. The new way of dealing with XML revolves around E4X - ECMAScript's XML specification. This provides a different, more efficient interface for dealing with XML nodes and attributes. These are all associated with the new XML (top level XML) class.
ActionScript Code:
var myXML:XML = new XML(objectToConvert);
ActionScript Code:
var myXML:XML =
The old class, as it was used in ActionScript 1 and 2, is still around. However, it has been renamed to XMLDocument (flash.xml.XMLDocument). If you want to work with XML the way you did with AS1 and AS2, you would use XMLDocument instead of XML.
ActionScript Code:
var myXML:XMLDocument = new XMLDocument("
0 评论:
发表评论