Graphics.clear not working

I have this on the first frame main timeline


function doBar(event:Event) {
    graphics.clear();
    var bar:Shape = new Shape();
    bar.graphics.beginFill(0x000000, 100);
    bar.graphics.lineStyle(0, 0xffffff,100);
    bar.graphics.drawRect(50,stage.height/2,10,150);
    bar.graphics.endFill();
    addChild(bar);
}

this.addEventListener(Event.ENTER_FRAME,doBar);

The reason I think its not working is because it starts to go really slow after about 15 seconds…

I also tried bar.graphics.clear() and still didnt work…what am I doing wrong? I want it to draw a new one every time. thanks.