From as2 to as3

Could someone be awesome and write this actionscrip 2.0 code in actioscript 3.0 for me ?


var radius:Number = 100;
var degrees:Number = 0;
var speed:Number = 2;

_root.onEnterFrame = function()
{
angle = degrees * (Math.PI/180);
degrees = degrees+speed;

yposition = radius * Math.cos(angle);
xposition = radius * Math.sin(angle);

moon_mc._x = xposition + ancor_mc._x;
moon_mc._y = yposition + ancor_mc._y;

}

ancor_mc.onPress = function(){
startDrag(this);
}

ancor_mc.onRelease = function(){
stopDrag();
}