Skip to main content
Participant
April 25, 2006
Answered

Email Link

  • April 25, 2006
  • 5 replies
  • 360 views
I'm using this code to open email off the button, but nothing is coming up...do I need to put anything in the window & what should my variables be set at? thanks

on(release) {
getURL("mailto:test@email.com");
}
This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer GHub7512407
Thanks for the responses Will
The problem seemed to be I had the first letter in the email in caps...don't know why this was a problem but it works now, thanks again

5 replies

Participant
April 26, 2006
MC = MovieClip.

Ok thats strange that the single quotes didnt work or the double.

For the variables i dont think it really matters what you do, so thats up to you.

if you want to try something else you could try this

give your the movie clip or button that you are using a instance name of whatever you want i will use "button" for this but you can change it.

and then on the keyframe not the button put this in the actions panel.

button.onRelease = function() {
getURL('mailto:name@website.com');
};

--

hope that helps

Will Stumpf
www.willstumpf.com
GHub7512407AuthorCorrect answer
Participant
April 26, 2006
Thanks for the responses Will
The problem seemed to be I had the first letter in the email in caps...don't know why this was a problem but it works now, thanks again
Participant
April 26, 2006
sure no problem
Participant
April 26, 2006
Hello GHub, the code you have should work, are you sure you have it on the MC? because that could be your problem.
You also could try useing single quotes instead of double like so:
on(release) {
getURL('mailto:name@website.com');
}

hopefully that will work


Will Stumpf
www.willstumpf.com
Participant
April 26, 2006
thanks for the reply...tried the single quotes, didn't make a difference...not sure what you mean by the "MC"

Variables: my options are 1 of the following, should I choose one specifically?
Don't Send
Send using GET
Send Using POST

Thanks