Email button in as3 |
This is a discussion on Email button in as3 within the Graphics & Flash forums, part of the Web Design category; I need to add an email button to my flash file. I used this code: Code: myBtn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); function mouseDownHandler(event:MouseEvent):void ... |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| Member Join Date: Jan 2009
Posts: 99
Thanks: 2
Thanked 0 Times in 0 Posts
![]() |
I need to add an email button to my flash file. I used this code: Code: myBtn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("mailto:me@iconadvertising.co.nz?subject=RSVP : Season Launch"));
}
How can I avoid this? Apart from this, the functionality works fine. |
| | |
| | #2 |
| Junior Member Join Date: Dec 2009 Location: San Francisco Bay Area
Posts: 24
Thanks: 0
Thanked 2 Times in 2 Posts
![]() Expertise: Web Development Experience: Professional |
Hey there! Two thoughts - first, it looks like there's a space between "subjec" and "t"; that might cause some weirdness. Second, try adding a target to the script. So it would look like: Code: myBtn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("mailto:me@iconadvertising.co.nz?subject=RSVP : Season Launch"),"_self");
}
|
| | |
![]() |
| Tags |
| button, email |
| Thread Tools | |
| Display Modes | |