|
UserDataNeighbours
Package com.lfm.services.UserData Class public class Neighbours Inheritance AbstractService --> AbstractUserData --> Neighbours Neighbours SummaryRetrieves a Last.fm users list of neighbours. When the data is loaded, an array of neighbour objects can be referenced in the "neighbours" property of the class. Details
Neighbour object structure
Example Usageimport com.lfm.services.UserData.Neighbours;
import flash.events.Event;
var neighboursdata:Neighbours = new Neighbours("RJ");
neighboursdata.addEventListener(Event.COMPLETE, serviceLoaded);
neighboursdata.load();
function serviceLoaded(event:Event):void {
for(var i:Number = 0; i < neighboursdata.friends.length; i++) {
trace(i+". Neighbour Name:" + neighboursdata['neighbours'][i]['name']);
trace(" Neighbour URL:" + neighboursdata['neighbours'][i]['url']);
trace(" Neighbour Image:" + neighboursdata['neighbours'][i]['image']);
trace(" Neighbour Match:" + neighboursdata['neighbours'][i]['match']);
}
}
| ||||||||||||||||||||||||||||||
► Sign in to add a comment