// [Action in Frame 1]
function addBall()
{
trace (count);
++count;
var _loc2 = _root.attachMovie("man", "id" + count, count);
_loc2._xscale = 90;
_loc2._yscale = _loc2._xscale;
_loc2._x = 10;
_loc2.gotoAndPlay(int(Math.random() * _loc2._totalframes));
_loc2.ball.gotoAndPlay(int(Math.random() * _loc2.ball._totalframes));
} // End of the function
function onEnterFrame()
{
} // End of the function
function update()
{
xml.load("http://services.digg.com/story/2028673/diggs?appkey=http%3A%2F%2Fwww.u.arizona.edu%2F~garyc%2Fman");
xml2.load("http://services.digg.com/story/2028673/comments?appkey=http%3A%2F%2Fwww.u.arizona.edu%2F~garyc%2Fman");
} // End of the function
var count = 0;
var mouseListener = new Object();
mouseListener.onMouseDown = function ()
{
};
Mouse.addListener(mouseListener);
var xml = new XML();
xml.ignoreWhite = true;
var xml2 = new XML();
xml2.ignoreWhite = true;
var diggs = 0;
xml.onLoad = function (suc)
{
trace (xml.childNodes[0].attributes.total);
diggs = xml.childNodes[0].attributes.total;
while (count < diggs && count < 500)
{
addBall();
} // end while
digg_txt.text = diggs + " diggs";
};
xml2.onLoad = function (suc)
{
var _loc1 = xml2.childNodes[0].firstChild.attributes.user;
var _loc2 = xml2.childNodes[0].firstChild.firstChild.nodeValue;
comment_txt.text = _loc1 + ": " + _loc2;
if (_loc1 == undefined)
{
comment_txt.text = "0 comments";
} // end if
};
update();
setInterval(update, 10000);
This needs to get buried on principle. Otherwise more idiots will do ***** like this. Di your eally want the front page of Digg to be fileld with self serving crap like this?
No way. Digg is a place for kiddies to digg stories that they got in unsolicited e-mails saying "Check ot this funny picture!" Not for self serving stunts.
so if i understand that script correctly its going to add a ball for each digg up to 500?
and no its not stuck, it just has an update interval delay, probably to keep the thing from going nuts checking every 1/10 of a second and hogging bandwidth