public class Main extends Sprite{ public function Main(){
var myXML:XML = <message>Hello, world!</message>; // An XMLList is a numbered set of XML objects. var list:XML = <list> <item id="58" /> <item id="135" /> <item id="12" /> </list>; var items:XMLList = list.item; trace(items); trace(items.length()); trace(items[1].toXMLString()); } } }
Related Scripts with Example Source Code in same category :