Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flash General Questions > Other Flash General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-19-2006, 08:23 PM   #1
lelales
forever learning
 
lelales's Avatar
 
Join Date: Aug 2004
Location: New Olreans
Posts: 1,261
Send a message via AIM to lelales Send a message via Yahoo to lelales
Default dynamic buttons calling "mailto"

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
Code:
on{release){ getURL("mailto:"+ cust_email};
??

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

Last edited by lelales; 12-19-2006 at 08:31 PM. Reason: new syntax
lelales is offline   Reply With Quote
Old 12-19-2006, 08:36 PM   #2
Cota
Super Moderator
 
Cota's Avatar
 
Join Date: Jul 2001
Location: NYC
Posts: 10,175
Default

That should work, assuming the client has a default mail application set on his/her machine. If not, it probably wont do anything.
__________________
Color Wars | (kul′ər wrs) n. - Open conflict between factions. www.theColorWars.com

cota - www.chadworkman.com | http://shavedplatypus.com
occupation: designer | flash developer | server-side developer (php, asp, mssql, mysql)
Cota is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic buttons lack actions? jwilly ActionScript 2.0 12 12-17-2005 05:42 AM
Dynamic buttons? floyde ActionScript 1.0 (and below) 5 08-31-2005 08:14 PM
Problem creating a draggable navigation menu with dynamic buttons hzahid777 ActionScript 2.0 0 07-05-2005 12:03 PM
dynamic text field buttons phastings ActionScript 1.0 (and below) 1 06-16-2005 09:51 PM
Passing Variables with Dynamic Buttons cmodonn ActionScript 1.0 (and below) 7 06-16-2004 11:21 AM


All times are GMT. The time now is 02:46 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.