PDA

View Full Version : Formmail for ActionScript3 variables?



sbryan
16-Dec-2009, 02:59 AM
Hello all,

I'm running into problems using Adam Khoury's parser designed for ActionScript3 in my live environment.

Other domains on the same self-hosted box are running formmail by Tectite and are able to send mail.

My question is: can formmail collect ActionScript3 variables?

russellr
16-Dec-2009, 03:27 AM
Hi,

I once did some work for someone for a Flash form and found that Flash (Actionscript) send the field values to the server script in an unusual way.

It's not too hard to decode them, and I have this on the TO DO list for FormMail, but it's not implemented yet.

sabbry
03-Jan-2010, 01:21 AM
Russell,

May I ask what you ended up using for that company? Do you know of any formmail parsers that would work in the interim, before Tectite formmail supports it?

Thanks!

russellr
03-Jan-2010, 08:58 AM
Hi,

I wrote custom PHP code for that customer.

That code allowed the rest of FormMail to work normally.

It wasn't a generic solution, so I couldn't just integrate the logic into FormMail.

fazy
26-Mar-2011, 11:29 PM
hi all
i was watching Lynda.com tutorial that called : creating a first web with adobe falsh

there were a contact page that could get people's name , email and message and post them to a php ,
the code in actionscript was this :


import flash.net.URLVariables;
import flash.net.URLRequest;

InteractiveObject(theName.getChildAt(1)).tabIndex = 1;
InteractiveObject(theEmail.getChildAt(1)).tabIndex = 2;
InteractiveObject(theMessage.getChildAt(1)).tabIndex = 3;

send_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_7);

function fl_MouseClickHandler_7(event:MouseEvent):void
{

if (theName.text == "" || theEmail.text == "" || theMessage.text == "")
{
theFeedback.text = "Please fill out all fields.";
}
else
{
// create a variable container
var allVars:URLVariables = new URLVariables();
allVars.name = theName.text;
allVars.email = theEmail.text;
allVars.message = theMessage.text;
//Send info to a url
var mailAddress:URLRequest = new URLRequest("http://www.fv-animator.ir/gdform.php");
mailAddress.data = allVars;
mailAddress.method = URLRequestMethod.POST;
sendToURL(mailAddress);
theFeedback.text = "Thank you!";
theName.text = "";
theEmail.text = "";
theMessage.text = "";
}
}


i was wondering if i could use FormMail.php instead of gdform.php