Drawing API clear() prob

I’m having trouble with clearing old drawn lines. When I have mc.clear() in the onEnterFrame there is no line drawn. When I leave it out, all the previous lines remain. I don’t know where to put it.

I’m trying to make a swf where there’s a pole and when you click the pole a line follows your mouse. When you then click on something floating around, the line is connected from the pole to the floating thing. That was technical talk.


this.onEnterFrame = function()
//dragger.clear(); // with it on there’s nothing on the stage
// with it off there are copies of old lines everywhere

The only thing on the stage is a line called ‘pole’.

Any idea what I am doing wrong?