View Full Version : [AS3] Creating a drop down subject line in a contact form
ShakaDula14
01-05-2010, 03:28 AM
I was wondering if any of you guys know how to do this in AS3.0? I've seen a few tutorials on how to do this in AS2.0 and Flash 8, but wondering if anyone has any code that will let me do that in AS3.0??
I can modify the code myself just fine, I just don't know how to do it ...
Using a ComboBox type of drop down?
ShakaDula14
01-06-2010, 02:09 AM
Using a ComboBox type of drop down?
yes sir.
yes sir.
What do you want to know? help me out a bit here.
ShakaDula14
01-06-2010, 02:23 AM
What do you want to know? help me out a bit here.
sorry.
well, where to start?
I need to know 3 things .....
1. How do I create a Flash Contact form that sends the message straight from Flash and not by opening your own mail client before hand?
I understand it has to do with PHP and MySQL, but I don't know what that is. Even a tutorial or another file that I could reference and I might be bale to stumble my way through it.
I know this is kind of a loaded question, but I am trying to advance my own understanding of AS3.0 and the only way is to try to do something that I am not familiar with ....
2. In the end, I settled for a simple contact for and this is the code that I have here ...
submit_btn.addEventListener(MouseEvent.CLICK, sendData);
function sendData(evtObj:MouseEvent):void{
trace(name_txt.text);
trace(email_txt.text);
trace(message_txt.text);
var theEmail:URLRequest = new URLRequest ("mailto:user@website.com?from="+email_txt.text+
"&subject=From Website&body="+message_txt.text+" from:"+name_txt.text);
navigateToURL(theEmail);
}
I tried adding a subject line
trace(subject_txt.text);
and changed the var as follows ...
var theEmail:URLRequest = new URLRequest ("mailto:user@website.com?from="+email_txt.text+
"&subject=subject_txt.text&body="+message_txt.text+" from:"+name_txt.text);
But all I get is a blank contact form once it is clicked and opened in the user's mail client. What am I doing wrong here?
3. How do I use the combo box option as a subject line in order to have a user pick one of 4 (for example) options?
and what code do I have to add so that it is returned properly in the script?
I can post the file if it will help any ...
Hi there
Yes, you will need to use some PHP to accomplish this. I have an example doing exactly what you are looking to do. It might be easier to do this via email however. Send me a note at xty@xtydigitaldesign.ca and I'll put something together for you - probably tomorrow. It's getting late here on the east coast. Yawn...
ShakaDula14
01-06-2010, 02:37 AM
Hi there
Yes, you will need to use some PHP to accomplish this. I have an example doing exactly what you are looking to do. It might be easier to do this via email however. Send me a note at xty@xtydigitaldesign.ca and I'll put something together for you - probably tomorrow. It's getting late here on the east coast. Yawn...
I'm all over that like a bee on honey!
you wouldn't happen to know lots about FLV playback, would you?
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.