Add the javascript to the template file inside the html-template
directory... and what are the errors you're getting?

Brendan



On 11/30/06, bghoward3 <[EMAIL PROTECTED]> wrote:

  thanks but i am not having success with this, it generates several
errors once i declare the vars

--- In [email protected] <flexcoders%40yahoogroups.com>, "Brendan
Meutzner"
<[EMAIL PROTECTED]> wrote:
>
> 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
> >
> >
> >
>

Reply via email to