buddyicon.lzx
<class name="buddyicon" width="24" height="24" stretches="both">
<handler name="ondata" args="d">
if (!d) return;
var dp = this.datapath;
var iconserver = dp.xpathQuery('@iconserver');
var userid = dp.xpathQuery('@id');
this.setSource( this.getBuddyIconUrl(userid, iconserver) );
</handler>
<method name="getBuddyIconUrl" args="userid,iconserver">
var s="http://static.flickr.com/" + iconserver + "/buddyicons/" + userid + ".jpg";
return s;
</method>
</class>
Cross References
Named Instances