So this what I use :
btnContactUs.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage(event:MouseEvent):void
{
navigateToURL(new URLRequest("mailto:test@test.com"), "_blank");
}
I also tried with "_self"
and it doesn't do anything ( I know the button work ).
You need to know that It's not an application embbeded in an html page. It's a local .swf that I run ( Ctrl + enter (with the .fla) and it doesn't work ).
navigateToURL(new URLRequest("mailto:test@test.com"), "_blank");
works whether you have it set to access network or local files only, I'm not sure why you can't get it to work, have you tried a simple trace for the fl_ClickToGoToWebPage
function to make sure it is called at all?
We can use following code with ExternalInterface where 'url' is mailto: link URL. i.e. mailto:abc@xyz.com?subject=Hello&body=defg
//Mailto Links from Flash
ExternalInterface.call("function(link){var wEmail = window.open(link, '_blank'); setTimeout(function(){ wEmail.close();}, 70);}", url);