« Comparison between Wordpress and MovableType | Home | What do i think about html5? »
June 12, 2009
Get Google PageRank from Flash
I just added a PageRank ActionScript class to the inca library. You now can get a website's pagerank via flash.
import inca.api.PageRank;
import inca.utils.PendingCall;
import flash.events.Event;
var pc:PendingCall = PageRank.query("blog.funciton.com");
pc.addEventListener(Event.COMPLETE, handleResult, false, 0, true);
function handleResult(e:Event):void{
trace ("PageRank is:", (e.target as PendingCall).data);
}
I'll work on updating the YFinance class. Didn't know the query format was documented.
Hope you guys like this class.
--fernando