Drawing API Tutorial

Hi
I was trying to learn some script from the tutorial but in drawing API tutorial,
this script to draw polygon;

_root.createEmptyMovieClip(“holder”,1);
holder.lineStyle(1,0,100);
width=30;
myPoints=[[50-width,50-width],[50+width,50-width],[50+width,50+width],[50-width,50+width],[50-width,50-width]];
holder.moveTo(this.myPoints[0][0],this.myPoints[0][1]);
for (var j=1;j < myPoints.length;j++)
holder.lineTo(this.myPoints[j][0],this.myPoints[j][1]);

but all it does is draw square…
I copied and pasted in my flash but i only end up drawing square. What am i doing wrong???
Thanks in advance