mardi 29 septembre 2015

AS3 : cannot fill subject and body in mailto

I am currently programming using as3 and I want to fill subject and body of my mail using mailto.

I tried everything I've seen on Internet but nothing worked :(

This is my entire code:

import flash.display.Sprite; 
import flash.net.URLRequest;
import flash.net.navigateToURL;

function openMailClient(event:MouseEvent):void
{
   var mail:URLRequest = new URLRequest("mailto:hi@hi.com?subject=hi&body=hi");
   navigateToURL(mail);
}
stage.addEventListener(MouseEvent.CLICK, openMailClient);

Can someone help me?

Aucun commentaire:

Enregistrer un commentaire