FORUMS: list search recent posts

Action Script help for email launch and pdf download

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Aimee Lyde
Action Script help for email launch and pdf download
on Oct 28, 2009 at 6:40:48 pm

Hi everyone. I'm brand new to Flash, so bear with me.
I'm having trouble with my Action Script. I want my email button, when clicked, to launch the user's email program with my name already in the to: box. Very standard. But it's not working. Here's the script I have on a separate layer above the button:

email_button.addEventListener(MouseEvent.CLICK, sendEmail);
function sendEmail(evtObj:MouseEvent):void{
var theEmail:URLRequest=new URLRequest("mailto:me@me.com?subject = Greetings");
navigateToURL(theEmail);
}


My next step will be to have another button launch a pdf in Acrobat. I foresee the same issue...

Is there any other online resource, like an Action Script dictionary, that people like?

As always, thanks for the help of this community!


Return to posts index

Adam Ashby
Re: Action Script help for email launch and pdf download
on Oct 29, 2009 at 6:36:51 am

function sendEmail(evtObj:MouseEvent):void{

should be:

function sendEmail(evt:MouseEvent):void{

Adam Ashby
mutli-media artist
http://www.adamashby.com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]