Graphing display problem

Hi,

I am trying to get my graph display it’s bars, but they will not appear for some reason. The outline works fine but no bars. As far as i know i am doing everything right, as i am following an example from a book. Below is the Actionscript that you just need to paste in the first frame. If anyone has any idea why this is not working please let me know… Thanx muchly!


this.createEmptyMovieClip(“graph”,1);
graph.itemData=[25,50,100];
graph.vLabel=100;
graph.vMax=-250;
graph.hMax=400;
graph.w= graph.hMax/(graph.data.length1.5)
graph._x=0;
graph._y=graph.vMax
-1;

with (_root.graph){
for (var i=0; i<data.length; i++){
lineStyle(5,0xff00ff,100);
beginFill(0x000000,100);
moveTo(w/2+(i1.5w) , 0);
lineTo(w/2+(i1.5w) ,(data*/ vLabel)vMax);
lineTo(w+w/2+(i
1.5w),(data/vLabel)* vMax);
lineTo(w+ w/2+(i1.5w), 0);
lineTo(w/2+(i1.5w) , 0);
endFill();
}
lineStyle(4,0x000000,100);
moveTo(0,0);
lineTo(0,vMax);
moveTo(0,0);
lineTo(hMax+10,0);
}