Enterframe to chack value and dispatch event only once

I’m using greensocks MP3Loader to play IntroMp3. I want to dispatch a custom event when the value of the MP3Loader.soundTime property is 3 (3seconds). I’ve done it with an enter frame event. the problem is that it dispatches the event more then one time. what is the better way to check that the MP3Loader.soundTime property is == to 3 and dispatch my event only one time?

Suggestions very much appreciated.

IntroMp3.playSound();
            
addEventListener(Event.ENTER_FRAME,myFunction);

function myFunction(event:Event) {
addEventListener( CustomEvents.IntroSound, firstMenuOpen, false, 0, true );
            
if(IntroMp3.soundTime >= 3 && IntroMp3.soundTime < 3.1)
{
   dispatchEvent( new CustomEvents( CustomEvents.IntroSound ) );
}
}