Can some one help me with this action script code to translate it to C#
onClipEvent(load){
_name = “circle”;
_alpha = 0;
_root.restartx = _X;
_root.restarty = _Y;
rotatespeed = 0;
speed = 0;
xvalue = 0;
yvalue = 0;
explode = false;
}
onClipEvent(enterFrame){
if(_root.pause == false)
{
if(_root.restart == false && _root.newlevel == false && explode == false)
{
if(Key.isDown(39) && rotatespeed < 12 && !Key.isDown(37))
{
rotatespeed = rotatespeed + 0.7;
if(speed < 8)
{
speed++;
}
}
if(Key.isDown(37) && rotatespeed > -12 && !Key.isDown(39))
{
rotatespeed = rotatespeed - 0.7;
if(speed < 8)
{
speed++;
}
}
if(Key.isDown(40) && speed > -4)
{
speed = speed - 0.5;
}
i = 0;
while(i <= 15)
{
if(this.hitTest(_root[“wall” + i]))
{
_root.restart = true;
}
i++;
}
_rotation = _rotation + rotatespeed;
xvalue = Math.sin(_rotation * 0.017453292519943295) * (- speed);
yvalue = Math.cos(_rotation * 0.017453292519943295) * speed;
_X = _X - xvalue;
_Y = _Y - yvalue;
speed = speed * 0.95;
rotatespeed = rotatespeed * 0.95;
}
else if(_root.restart == true)
{
speed = 0;
rotatespeed = 0;
}
else
{
speed = 0;
rotatespeed = 0;
}
}
}