FrameLabel to var listener

I’m trying to make a listener for catching the currentFrameLabel.

It should listen to changes when entering another framelabel on stage and do this until the page visitor leaves the page.

now i have:

this.addEventListener (Event.ENTER_FRAME, test);
function test (e:Event) {
var lol = MovieClip(root).currentLabel;
trace (lol);
this.removeEventListener (Event.ENTER_FRAME, test);
}

this is not the right sollution because it catches the framelabel and stop the function.

this.addEventListener (Event.ENTER_FRAME, test);
function test (e:Event) {
var lol = MovieClip(root).currentLabel;
trace (lol);
}

this is not gonna work well because it keeps looping over and over, it might slow down the session. And it keeps refreshing the “lol” var.

How can i achieve that the listener keeps working but doesnt constantly refresh the var. Like a sort of pause were it starts again when it detects a change of frame label