[contact-form-7 id="24078" title="Feedback EN"]

Flash. How to create mailto link

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 protected]";

  //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