import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.xml.*;
var feedXMLloader : URLLoader;
var feedXML : XML;
feedXMLloader = new URLLoader ();
feedXMLloader.addEventListener (Event.COMPLETE, feedXMLisHere);
feedXMLloader.load (new URLRequest (urlToPhotos));
function feedXMLisHere (e : Event) : void
{
feedXML = new XML (e.target.data);
//feedXML.photos.photo[0].@id
var list : XMLList = new XMLList (feedXML.photos.photo);
for (var a in lista)
{
list[a].@id
}
};