Migration to AS2

Hi everybody, I am going crazy trying to conver this little script into AS2. I have been using it at Flash 5 without any problem by I just upgraded to Flash 8 and still want to use it. Any help would be appreciated. Thank you very much:hugegrin:.

///////////////////////////////////////////////////////////////////////////////////

onClipEvent (load){
function speed(num)
{
speedX = -(_root._xmouse - hx) / num;
return(speedX);
}
function trans(){
p = p + speed(60);
range = (p + 308) * 3.141593 / 180;
re1 = Math.sin(range) * r;
re2 = Math.cos(range) * a;
}
function property(){
trans();
_x = hx + re1;
_alpha = re2 + 70;
_yscale = re2 + 70;
_xscale = re2 + 70;
this.swapDepths(_alpha);
}
hx = 650;
hy = 200;
r = 100;
a = 30;
}
onClipEvent (enterFrame)
{
property();
}

////////////////////////////////////////////////////////////////////////////////