"ENTER_FRAME" vs "MOUSE_OVER"

I am encountering an interesting error that someone hopefully can shed some light on.

I have an object that i want to remove from a Sprite once the y value reaches 0.

i made a Sprite and put one thing in it.

var container:Sprite = new Sprite();
addChild(container);
var lB:Barrier = new Barrier();
container.addChild(lB);

I also added a mouse_over listener and a enter_frame listener.

now i have a different function that goes with the two listeners.
in both of them i have a line for removing the lB clip.

container.removeChild(DisplayObject(evt.target));

the line works just fine in the mouse_over function.
when the enter_frame kicks in tho the clip gets removed also but then i get an error
“The supplied DisplayObject must be a child of the caller” and the FPS go to about 1 lol

if anyone has any idea let me know …tnx all:beam::beam: