|
UserDataTopAlbumTags
Retrieves a Last.fm users top tags for an album.
Package com.lfm.services.UserData Class public class TopAlbumTags Inheritance AbstractService --> AbstractUserData --> TopAlbumTags TopAlbumTags SummaryRetrieves a Last.fm users top tags for an album. 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.TopAlbumTags;
import flash.events.Event;
var tagdata:TopAlbumTags = new TopAlbumTags("RJ","Metallica","Ride the Lightning");
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