Groups | Blog | Home
all groups > flash actionscript > january 2004 >

flash actionscript : Mailto ?


Rob Solberg
1/30/2004 6:28:21 PM
You can use the getURL function and where it asks for the URL, put

mailto:youraddress@email.com

Rob|e.9





[quoted text, click to view]
get a button to open my Email editer the way I could with <a href
="mailto:address">.......</a>
[quoted text, click to view]

ThePainter242
1/30/2004 11:19:14 PM
I have always used HTML for my web pages, I am now trying flash but I cant get a button to open my Email editer the way I could with <a href ="mailto:address">.......</a>
Does anyone know how to do this ?

Jack.
1/30/2004 11:29:24 PM
try something like -

Name = "jak";
Emailaddress = "jok@jek.jik"
address1 = "16";
address2 = "MY";
address3 = "HOUSE";
address4 = "MY";
address5 = "ROAD";
postcode = "QW1 ER2";
phone = "09876543 123";
subject = "testing";
nl = "%0A";
comment = "does this work?";

mail_button.onPress=function() {
getURL ("mailto:mailing@test.co.uk?Subject="+Subject+
"&body=Name: "+Name+nl+
Emailaddress+nl+
Address1+nl+
Address2+nl+
Address3+nl+
Address4+nl+
Address5+nl+
Postcode+nl+
Phone+nl+nl+
comment);
}

regards
wicket121
1/31/2004 4:47:15 AM
Call me dumb but I am very new to flash. All I want to do is link a text to another site. Do I use geturl action? I tired it but it has an error. I'm probably doing something wrong. Any help?

ThePainter242
1/31/2004 9:42:25 AM
I tried the script you suggest and it didnt work thats why I came here seeking advice,
I experimented a bit by creating a web page with a flash Email button with your script and a HTML Email button and only the HTML button worked ?
I will experiment a bit more and get back to you thanks for the help.
Sorry for cross posting on the general page.

Wicket121:
I think what you are trying to do can be done by highlighting the chosen text then in properties there is a link box at the bottom with a picture of a chain link next to it you put the URL in there.

Rob Solberg
1/31/2004 10:23:46 AM
1. Click on your button to highlight it.

2. Hit F9 to open up your Actions window.

3 .Add this code in the Actions window:

on (release) {
getURL("mailto:name@email.com");
}

Of course, you'd replace name@email.com with the email address you want to
use.

Regards,
Rob|e.9






[quoted text, click to view]
text then in properties there is a link box at the bottom with a picture of
a chain link next to it you put the URL in there.
[quoted text, click to view]

AddThis Social Bookmark Button