# HTML email link from .swf

**URL:** <https://forum.kirupa.com/t/html-email-link-from-swf/308106>\
**Category:** Uncategorized\
**Created:** [April 17, 2010, 1:35pm UTC](https://forum.kirupa.com/t/html-email-link-from-swf/308106 "2010-04-17T13:35:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thevezs](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@thevezs](https://forum.kirupa.com/u/thevezs)\
**Post date:** [April 17, 2010, 1:35pm UTC](https://forum.kirupa.com/t/html-email-link-from-swf/308106/1 "2010-04-17T13:35:53Z")

</div>

I’ve coded a flash page with an email link to open with the subject line already filled out :

var emailLink:URLRequest = new URLRequest("mailto:sales@air-horizons.com?subject=From Air Horizons Web Site");

this.email.addEventListener(MouseEvent.CLICK, onClick);

function onClick(event:MouseEvent):void { navigateToURL(emailLink);  
}

It works in the published swf but does not in the published HTML file…is there something I’m doing wrong?

Any help would be appreciated!

Thanks,
