Groups | Blog | Home
all groups > flash actionscript > february 2005 >

flash actionscript : "MailTo:" Button


David Stiller
2/25/2005 3:57:53 PM
kuriouskev,

[quoted text, click to view]

The same way you do it in HTML.

Basic choices are A) the mailto: protocol, which works only if the user
has a default email client installed (people using HotMail at a public
library might be out of luck), or B) a server side mail form handler.

A) In HTML, you would put the following into your anchor (<a>) tag: <a
href="mailto:yourName@yourDomain.com">Email me!</a> ... in ActionScript, you
would put getURL("mailto:yourName@yourDomain.com");

B) Use the LoadVars class (or older techniques, all listed in the
documentation) to send your user's comments (or what have you) to a cgi
script or whatever email script your ISP provides.



David
stiller (at) quip (dot) net
"Luck is the residue of good design."

kuriouskev
2/25/2005 8:48:52 PM
hainwilson
7/25/2005 12:00:00 AM
David, I am having this same problem. I found out I need to add the getURL
mailto but don't know where to put it in reference to the code that is already
there for the button (I am using a template). Here is the code string. It
doesn't match what the knowledgebase said to look for, so I'm unsure where to
put the GetURL statement. Thanks.

on (rollOver) {
gotoAndPlay(2);
}
on (releaseOutside, rollOut) {
gotoAndPlay(11);
}
ActionScripter1
7/25/2005 12:00:00 AM

on (release) (
getURL("mailto:info@yourdomain.com&subject=yoursubject&body=I would like to subscribe to you news letter");
AddThis Social Bookmark Button