Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

Email problems

Question posted by: chevinbighill (Newbie) on July 10th, 2008 10:10 AM
HI guys
I'm having trouble with this code.

on (release) {
var address = "myemail@Gmail.com";
var caption = "Enquires:";
var message = "";
button.onRelease = function() {
getURL("mailto:"+address+"?Subject="+caption+"&body="+message);
};
}

I've named the instance "button" and placed this script on the button but when i publish and click. The email is activated and the correct email and subject appears but it also opens a redundant web browser as well....

Im very new to scripting and am struggling to work this out
Please help id be very grateful
Cheers
Jason
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
joedeene's Avatar
joedeene
Member
92 Posts
July 21st, 2008
09:09 PM
#2

Re: Email problems
could you explain a bit more, because i dont know what you are trying to do, the getURL property is going to open up a new window for a browser or open a new tab in some newer web broswers. but when you send an email, it will open up your default mail sender, which mine is outlook, not the browser, like yahoo or gmail or aolmail, but do u want it to open a browser or not? and what else is it opening, since you mentioned redundant. and i used a part of your code, you didnt need the button1.onRelease since it still works the getURL function. it depends on how you are expecting to send the email and all, not many ways in flash. heres the edited code:
Code: ( text )
  1. on (release) {
  2.     var address = "myemail@Gmail.com";
  3.     var caption = "Enquires:";
  4.     var message = "";
  5.     getURL("mailto:"+address+"?Subject="+caption+"&body="+message);
  6. }

Reply
Reply
Not the answer you were looking for? Post your question . . .
180,795 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Top Flash / Actionscript Forum Contributors