Actionscript 3: Email

HI,

I am new to Actionscript 3 and I would like to make a “mailbutton”, which results in sending an email to a certain address.

Her is what I have tried ( I got the code from a tecnical note at Adobe):
import flash.events.MouseEvent;
import flash.net.*;
function openPage(event:MouseEvent):void
{ var request:URLRequest = new URLRequest(“mailto:”+to.text+"?subject="+subject.text+"&body="+body.text); navigateToURL(request, “_blank”);}myButton.addEventListener(MouseEvent.CLICK, openPage);
However, when I insert a valid email address instead of +to, e. g. “alme@almeborg.dk”, nothing happens,when I press “myButton”.

Where do I go wrong

Alme