Categories

Flash. How to create mailto link

Phil Nowak April 5, 2012
No votes yet.
Please wait...

In this tutorial you will learn the way to create mail to link in AS3 Flash templates. 1) First you need to locate the symbol you need to input link. Use library to locate and open the element. 2) сreate text for our new button with text tool 3) Select rectangle tool and create box to cover our new text 4) Select new box and convert it to symbol (F8), then add “mailtoLink” instance name 5) Select the first frame in the object and press F9 to open action panel, paste the following script:

//SET THE MAILTO ADDRESS
  var emailLink:String = "mailto:email@address.com";

  //ADD EVENT LISTENER FOR EMAIL LINK
  mailtoLink.addEventListener(MouseEvent.MOUSE_DOWN,function():void {
  navigateToURL(new URLRequest(emailLink), "_blank");}
  );
6) Replace the e-mail and test your website – your e-mail link should work properly. Feel free to check the detailed video tutorial below: Flash. How to create mailto link
This entry was posted in Working with Flash, Working with XML Flash and tagged as3, flash, link, mailto. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket