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

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

Actionscript:

var vEmail:URLRequest = new URLRequest(" mailto:dankempton@gmail.com" );

bEmail.addEventListener(MouseEvent.CLICK,fEmailClick);

function fEmailClick(event:MouseEvent):void {
navigateToURL(vEmail," _self" ) ;
}

Example:

Get Adobe Flash player

Leave a Reply