Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-17-2012, 02:47 AM   #1
fullyloaded
Registered User
 
Join Date: Mar 2012
Posts: 7
Default [AS2] combobox send text

hi
i have this script that will send text from a text box to a email address but been trying to get it to send the selected text from a combo box anyone have any idea how i can do this? thanks...

.as code:
Code:
var sndMailLsnr:Object = new Object();
sndMailLsnr.click = function()
{
if(sndrName.text != " && sndrEmail.text != " && rcvrName.text != "  && rcvrEmail.text != ")
	{
		var sndrVar:LoadVars = new LoadVars();
		
		var rcvrVar:LoadVars = new LoadVars();
		

		sndrVar.sndrName = sndrName.text;
		sndrVar.sndrEmail = sndrEmail.text
		sndrVar.rcvrName = rcvrName.text;
		sndrVar.rcvrEmail = rcvrEmail.text;
		sndrVar.msgID = _parent.msgID;
		
		rcvrVar.onLoad = function(success)
		{
			if(success)
			{
				if(rcvrVar.output == "Mail Sent") 
				trace(rcvrVar.output);
				stField.htmlText = "Mail sent successfully";
			}
			else
			{

				stField.htmlText = "Mail cannot be send.";
			}
		}
	}
	else
	{
		stField.htmlText = "Please fill all the required fields.";
	}
	
	sndrVar.sendAndLoad("sendmail.php",rcvrVar,"GET");
}

sndMail.addEventListener("click",sndMailLsnr);
fullyloaded is offline   Reply With Quote
Old 04-17-2012, 04:15 AM   #2
fullyloaded
Registered User
 
Join Date: Mar 2012
Posts: 7
Default

Problem solved !
fullyloaded 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


All times are GMT. The time now is 10:45 AM.

///
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.