|
UserDataTopArtistTags
Retrieves a Last.fm users top tags for an artist.
Package com.lfm.services.UserData Class public class TopArtistTags Inheritance AbstractService --> AbstractUserData --> TopArtistTags TopArtistTags SummaryRetrieves a Last.fm users top tags for an artist. When the data is loaded, an array of tag objects can be referenced in the "tags" property of the class. Details
Tag object structure
Example Usageimport com.lfm.services.UserData.TopArtistTags;
import flash.events.Event;
var tagdata:TopArtistTags = new TopArtistTags("RJ","Metallica");
tagdata.addEventListener(Event.COMPLETE, serviceLoaded);
tagdata.load();
function serviceLoaded(event:Event):void {
for(var i:Number = 0; i < tagdata.tags.length; i++) {
trace(i+". Tag Name:" + tagdata.tags[i]['name']);
trace(" Tag Count:" + tagdata.tags[i]['count']);
trace(" Tag URL:" + tagdata.tags[i]['url']);
}
}
|
Sign in to add a comment