A href="event: opens a popup

as the title of this goes, I am calling to an event through xml and htmlText, then using TextLink event inside of Flash to fire a function. This all works, but it pops up an empty browser window. How can I prevent the browser window from opening up?

The text in xml is:

<a href='event:displayEmail'>Share with a colleague</a>

Then inside my class:

frame2.buttonOne.addEventListener(TextEvent.LINK, displayEmail);//inside another method

private function displayEmail(e:TextEvent):void{
            trace(e.text);
            if(e.text == "displayEmail"){
                addChild(email);
                TweenLite.to(email, .7, {alpha:1, ease:Quart.easeOut});
            }
        }

TIA :fab: