URLRequest: Make an Email link using AS3 (Option 2)

Create a button movieclip on your stage.
Give it an instance name of bEmail.

Actionscript:

bEmail.addEventListener(MouseEvent.CLICK,fEmailClick);

function fEmailClick(event:MouseEvent):void {
navigateToURL(new URLRequest("mailto:dankempton@gmail.com"),"_self" );
}

Example:

Get Adobe Flash player

Leave a Reply