var ns:Namespace = new Namespace("http://www.w3.org/2005/Atom");
var loader:URLLoader = new URLLoader();
var xml:XML = new XML();
var request:URLRequest = new URLRequest("http://search.twitter.com/search.atom?q=%23CS5_jp");
loader.load(request);
loader.addEventListener(Event.COMPLETE, loadComplete);
function loadComplete(e:Event):void {
xml = new XML(e.target.data);
//つぶやきをパース
for(var i:int = 0; i<xml.ns::entry.length(); i++){
//つぶやき文章
trace(xml.ns::entry[i].ns::title);
//投稿者のアイコン写真
trace(xml.ns::entry[i].ns::link.@href[1]);
}
}