it is just 18 lines of code
_root.createEmptyMovieClip("_mc_ball", 1);
drawb(eval("_mc_ball"), 200, 0xFF9900, 0xCC6666, 300, 200);
clrArr = [0xFFCC00, 0x000000, 0x336600, 0x990000, 0xCC0000];
function drawb(ref, nRadius, nOutline, nFill, xpos, ypos) {
eval(ref)._x = xpos;
eval(ref)._y = ypos;
_mc_ball.moveTo(nRadius, 0);
alpha = nAy=nAx=nRy=nRx=nAngle=0;
this.onEnterFrame = function() {
nAngle += Math.PI/55;
_mc_ball.lineStyle(2, _root.clrArr[random(5)], 100);
nRx = Math.cos(nAngle-((Math.PI/4)));
nRy = Math.sin(nAngle-((Math.PI/4)));
nAx = (Math.cos(nAngle)*nRadius);
nAy = (Math.sin(nAngle)*nRadius);
_mc_ball.curveTo(nRx, nRy, nAx, nAy);
};
}