pnicklin
06-26-2009, 12:56 PM
Hi, this is probably a simple issue, but i'm new to actionscript and am pulling my hair out trying to get this email button working.
I have a simple button in flash 8 which I have labeled "email_btn." I am using actionscript 3.0 and in the actions layer I have this code:
var emailLink:URLRequest = new URLRequest("mailto:myemail@whatevermail.com");
email_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler140);
function mouseDownHandler140(event:MouseEvent):void {
{
navigateToURL("mailto:myemail@whatevermail.com");
}
However it is coming up with this error:
1084: Syntax error: expecting rightbrace before end of program.
Please help.
I have a simple button in flash 8 which I have labeled "email_btn." I am using actionscript 3.0 and in the actions layer I have this code:
var emailLink:URLRequest = new URLRequest("mailto:myemail@whatevermail.com");
email_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler140);
function mouseDownHandler140(event:MouseEvent):void {
{
navigateToURL("mailto:myemail@whatevermail.com");
}
However it is coming up with this error:
1084: Syntax error: expecting rightbrace before end of program.
Please help.