RemoveEventListener Not Working?

Hi Everyone,

I am working on function that rewinds a movieclip’s timeline when I bumped into a situation wherein my EnterFrame event doesn’t get destroyed. Below is my code:

[FONT=courier new]function rewindTo(frame:Number, mc:MovieClip):void {[/FONT]
[FONT=courier new]    var destinationFrame = frame;[/FONT]
[FONT=courier new]    mc.prevFrame();[/FONT]
[FONT=courier new]    if (mc.currentFrame == destinationFrame) {[/FONT]
[FONT=courier new]        trace("--")[/FONT]
[FONT=courier new]        my_mc.removeEventListener(Event.ENTER_FRAME, function(e:Event){ rewindTo(1, my_mc ) });[/FONT]
[FONT=courier new]        [/FONT]
[FONT=courier new]    }[/FONT]
[FONT=courier new]}[/FONT]
[FONT=courier new]my_mc.addEventListener(Event.ENTER_FRAME, function(e:Event){ rewindTo(1, my_mc ) });[/FONT]

Notice that I check if my EnterFrame event has been destroyed by using a trace function. But for some reasons, it keeps on tracing even though I’m calling the removeEventListener method.

Am I missing something here guys?

Thanks in advance,
Mark