this is the code to create the pentagon in a movieclip called pentagon


var xc:Number = 0;
var yc:Number = 0;
var a:Number = 20*Math.cos(Math.PI/5)*Math.sin(Math.PI/5);
var b:Number = 20*Math.sin(Math.PI/5)*Math.sin(Math.PI/5);
var c:Number = 20*Math.sin(Math.PI/5)*Math.cos(Math.PI/20);
var d:Number = 20*Math.sin(Math.PI/5)*Math.sin(Math.PI/20);
createEmptyMovieClip("pent",0);
pent.lineStyle(4,0xFF0000,50);
pent.moveTo(xc,yc-10);
pent.lineTo(xc+a,yc-10+b);
pent.lineTo(xc+a-d,yc-10+b+c);
pent.lineTo(xc-a+d,yc-10+b+c);
pent.lineTo(xc-a,yc-10+b);
pent.lineTo(xc,yc-10)


this is the code to move the pentagon movie clip across the stage


this.attachMovie("pentagon","pentagon1", 1);
pentagon1._x=0;
pentagon1._y= 0;
pentagon1._alpha = 0;
pentagon1.onEnterFrame = function(){
	pentagon1._alpha +=1;
	pentagon1._x +=1;
	pentagon1._y +=1;
	if(pentagon1._x > 400){
		pentagon1.onEnterFrame = null;
	}
}