Click to See Complete Forum and Search --> : Actionscript problem with vista and the mailto tag??


m_sor88
07-09-2008, 05:40 PM
Hi I'm still pretty new with flash any help would be greatly appreciated,

I'm working on a flash based website and trying to make a simple contact us page with a button that u click and it opens the default email program on your computer.

the problem is that the windows mail and windows live mail will only run in Vista.

the code is quite simple, I have a text window stating the email address then a button saying "or simply click here"

the actions on the button are:

EDIT: (this forum will not allow the posting of Email adresses so replaced my actual email in the mail to with myEmailAdress)

on (release) {
getURL("mailto: myEmailAdress?");
}


again when I publish in a browser and run in vista the site works fine but in xp when I click the button nothing happens.

any ideas?

eCat
07-11-2008, 09:59 PM
Your title says the problem is with vista, but your post says it works fine in vista? Which OS actually gives you the problem?

The script looks fine to me... just make sure there's no space between the colon and the email address... I also like to add ,"_self" after the email address.

m_sor88
07-12-2008, 03:55 PM
hi, i guess its actually an xp problem. but with that code shouldn't i also get a defualt email pop up in windows xp? is there a better, simple way to send an email in actionscrip/Flash?

eCat
07-15-2008, 05:38 PM
If there is a better way, I'm afraid I don't know it! You could try posting this question in a Flash user group forum if you don't get an answer here.

eCat

sstalder
07-16-2008, 08:41 AM
Change your scripting to:

getURL("javascript: mailto: myEmailAdress?;","_self");

The better way would be to send your emails using a Flash / PHP script.