var tfCount:int; function xmlLoadComplete(event:Event):void { var newsPaper:XML = new XML(event.target.data); var newsCount:int = newsPaper.@count; tfCount=parseInt(newsCount); }