#include "query.as" // ---------------------- // old. // ---------------------- var resp:XML = new XML(); resp.ignoreWhite = true; resp.onLoad = function(success:Boolean) { if(success) { _root.createEmptyMovieClip('display_area', 1); display_area._x = 100; display_area._y = 100; var categories:FACategoriesIterator = new FACategoriesIterator(this.firstChild.lastChild.childNodes, display_area); var temp:Object; while(categories.next()) { temp = categories.current(); // trace the category id trace(temp.attributes.i); } } }; resp.load('http://www.filearts.com/flash/test.php'); trace('----'); // ---------------------- // new. // ---------------------- $(new XML()).set('ignoreWhite', true).load(function(success:Boolean){ $($(_root).mc('display_area')).set({ _x: 100, _y: 100 }); $(this.firstChild.lastChild.childNodes).each(function(i){ // trace the category id trace(this.attributes.i); }); }).load('http://www.filearts.com/flash/test.php');