Use navigateToURL() method with basic JavaScript functions in the URLRequest itself
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import flash.net.*;
public function sendMail(e:Event):void {
var u:URLRequest = new URLRequest("mailto:" + ti1.text);
navigateToURL(u,"_self");
}
</mx:Script>
<mx:Button id="b1" click="sendMail(event)" label="Send Mail" />
<mx:Form>
<mx:FormItem>
<mx:Label text="Email Address: " />
</mx:FormItem>
<mx:FormItem>
<mx:TextInput id="ti1" />
</mx:FormItem>
</mx:Form>
</mx:Application>
Related examples in the same category