Send email using buttons in Flash MX 2004

Hi experts,

I have a SWF embedded in a HTML page, I am currently working on the contents section of the website. Within the SWF (Flash document) I have a button beside each contacts name that I want the user to click if the want to send an email to that person. i am currently using.

on(release){
      getURL("mailto:me@my.com");
}

Nothing is happening. Any ideas?
daly__paulAsked:
Who is Participating?
 
rascalpantsConnect With a Mentor Commented:
the code you have works for me...

the code you have needs to be place ON the buttons themselves...  most likely have have them on the timeline.

I would recommend using the timeline method, but you need to give each button an instance name in the Properties panel and then use the below code:

theButtonNameHere.onRelease = function(){
    getURL("mailto:me@my.com");
};


rp
0
 
CyanBlueCommented:
Um...  What if you specify the target window???

getURL("mailto:me@my.com", "_blank");

CyanBlue
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.