PDA

View Full Version : dynamic buttons calling "mailto"


lelales
12-19-2006, 08:23 PM
Hello,

I ajm creating buttons Dynamically using the "duplicateMovieClip" function. The buttons consist of a textbox beneath an invisible button. The text for the button is an email, wihch is retrieved from MySQL via PHP using loadvars. My question is, How would I make an "onRelease" call to open up an email application with the email address of the button?

Lets say the varible being retrieved is called "cust_email".

Would the code on the button be on{release){ getURL("mailto:"+ cust_email};??

I'm working on it now and I'll let you know how it goes.
thanks

Cota
12-19-2006, 08:36 PM
That should work, assuming the client has a default mail application set on his/her machine. If not, it probably wont do anything.