import flash.external.ExternalInterface;
public static function emailViewURL():void
{
var callResult:String = ExternalInterface.call('emailURL', to, subject);
}
Inside your HTML wrapper, include the following javascript
function emailURL(to, subject)
{
this.location.href = "mailto:" + to + "?SUBJECT=" + subject;
}
HTH,
Brendan
On 11/30/06, bghoward3 <[EMAIL PROTECTED]> wrote:
hi
can anyone direct me to the proper way to word a funtion so that i can
pass it 2 argumetns and have it open the users email client and
populate the to: and subject fileds?
ie
public function launchEmail(aParam:Array):void {
getURL("mailto:var1?subject=var2");
}
thanks