Skip to content

Instantly share code, notes, and snippets.

@CartBlanche
Created January 25, 2012 09:48
Show Gist options
  • Save CartBlanche/1675677 to your computer and use it in GitHub Desktop.
Save CartBlanche/1675677 to your computer and use it in GitHub Desktop.
protected function playerInfoService_resultHandler(event:ResultEvent):void
{
var xmlList : XMLList = XML(event.result).metadata.section;
var xmlListCollection : XMLListCollection = new XMLListCollection(xmlList);
var playerInfo : PlayerInfo;
Alert.show( "How Long" + xmlListCollection.length, "Collection Length?" );
for each (var node : XML in xmlListCollection)
{
if ( node.@layout == "flow" )
{
playerInfo = new PlayerInfo();
playerInfoList.addItem(playerInfo);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment