Resolve for me this code >_<

wid=150;
heigh=80;
var x3,y3,x1,y1,x2,y2,x4,y4,x5,y5;
x1=Stage.width/2-150;
y1=Stage.width/2-150;
x2=x1+wid;
y2=y1;
x3=x2+wid;
y3=y1;
x4=x1+wid/2;
y4=y1+Math.sin(Math.PI/3)*wid;
x5=x4+wid;
y5=y4;
Ball1();
function Ball1()
{
var ball1_mc:MovieClip;
ball1_mc=_root.createEmptyMovieClip(“newMC”,1);
angle=0;
x=Math.sin(angle)*heigh+Math.cos(angle)*heigh+x1;
y=Math.cos(angle)*heigh-Math.sin(angle)*heigh+y1;
ball1_mc.beginFill(0xCCFFCC,50);
ball1_mc.moveTo(x,y);

ball1_mc.lineStyle(0,0xFF0000,90);
angle=0;
i=0;
ball1_mc.onEnterFrame=function()
{
if (angle<6.2)
{
angle+=0.1;
trace(angle);
x=Math.sin(angle)*heigh+Math.cos(angle)*heigh+x1;
y=Math.cos(angle)*heigh-Math.sin(angle)*heigh+y1;
ball1_mc.lineTo(x,y);
}else
{
delete this.onEnterFrame;
angle=0;
ball1_mc.endFill();
Ball2();
}
}
}

function Ball2()
{
var ball2_mc:MovieClip;
ball2_mc=_root.createEmptyMovieClip(“newMC2”,2);
angle=0;
x=Math.sin(angle)*heigh+Math.cos(angle)*heigh+x2;
y=Math.cos(angle)*heigh-Math.sin(angle)*heigh+y2;
ball2_mc.moveTo(x,y);
ball2_mc.beginFill(0xACACAC,40);
ball2_mc.lineStyle(0,0xFF0000,90);
angle=0;
i=0;
ball2_mc.onEnterFrame=function()
{
if (angle<6.2)
{
angle+=0.1;
trace(angle);
x=Math.sin(angle)*heigh+Math.cos(angle)*heigh+x2;
y=Math.cos(angle)*heigh-Math.sin(angle)*heigh+y2;
ball2_mc.lineTo(x,y);
}else
{
delete this.onEnterFrame;
angle=0;
Ball3();
ball2_mc.endFill();
}
}
}

function Ball3()
{
var ball3_mc:MovieClip;
ball3_mc=_root.createEmptyMovieClip(“newMC3”,3);
angle=0;
x=Math.sin(angle)*heigh+Math.cos(angle)*heigh+x3;
y=Math.cos(angle)*heigh-Math.sin(angle)*heigh+y3;
ball3_mc.moveTo(x,y);
ball3_mc.beginFill(0x0C0C0C,40);
ball3_mc.lineStyle(0,0xFF0000,90);
angle=0;
i=0;
ball3_mc.onEnterFrame=function()
{
if (angle<6.2)
{
angle+=0.1;
trace(angle);
x=Math.sin(angle)*heigh+Math.cos(angle)*heigh+x3;
y=Math.cos(angle)*heigh-Math.sin(angle)*heigh+y3;
ball3_mc.lineTo(x,y);
}else
{
delete this.onEnterFrame;
angle=0;
Ball4();
ball3_mc.endFill();
}
}
}

function Ball4()
{
var ball4_mc:MovieClip;
ball4_mc=_root.createEmptyMovieClip(“newMC4”,4);
angle=0;
x=Math.sin(angle)*heigh+Math.cos(angle)*heigh+x4;
y=Math.cos(angle)*heigh-Math.sin(angle)*heigh+y4;
ball4_mc.moveTo(x,y);
ball4_mc.beginFill(0xF9F900,40);
ball4_mc.lineStyle(0,0xFF0000,90);
angle=0;
i=0;
ball4_mc.onEnterFrame=function()
{
if (angle<6.2)
{
angle+=0.1;
trace(angle);
x=Math.sin(angle)*heigh+Math.cos(angle)*heigh+x4;
y=Math.cos(angle)*heigh-Math.sin(angle)*heigh+y4;
ball4_mc.lineTo(x,y);
}else
{
delete this.onEnterFrame;
angle=0;
Ball5();
ball4_mc.endFill();
}
}
}

function Ball5()
{
var ball5_mc:MovieClip;
ball5_mc=_root.createEmptyMovieClip(“newMC5”,5);
angle=0;
x=Math.sin(angle)*heigh+Math.cos(angle)*heigh+x5;
y=Math.cos(angle)*heigh-Math.sin(angle)*heigh+y5;
ball5_mc.moveTo(x,y);
ball5_mc.beginFill(0x454545,40);
ball5_mc.lineStyle(0,0xFF0000,90);
angle=0;
i=0;
ball5_mc.onEnterFrame=function()
{
if (angle<6.2)
{
angle+=0.1;
trace(angle);
x=Math.sin(angle)*heigh+Math.cos(angle)*heigh+x5;
y=Math.cos(angle)*heigh-Math.sin(angle)*heigh+y5;
ball5_mc.lineTo(x,y);
}else
{
delete this.onEnterFrame;
angle=0;
ball5_mc.endFill();
}
}
}

wid=distance between 2 near circle.
heigh=radius of a circle.