PDA

View Full Version : Request - Flash Submit button code to WH Form Mail app



rlhilton
02-24-2011, 12:17 PM
Hello,
I'm building a guestbook page in Adobe Flash Builder which will mail me the contents of a guestbook form. I wanted to use the WH form mail application to perform the mail submission. Does anybody have a code sample, that they could share, of the code behind the submit button?
Thanks.

wildjokerdesign
02-24-2011, 12:24 PM
I am not real familiar with Flash really but is there a way you can set the src of the form that is being sent? The only thing is that formmail returns either html to the client or redirects depending on settings so not sure how well that is going to work for you.

rlhilton
02-24-2011, 06:08 PM
Thanks for the tip WJD. I really just need to pass the variables from my form into FormMail which I've installed on my WH account. I do like the functionality that it provides and hope to implement some of that, after I get the syntax to do the POST. Just having trouble figuring that part out.

wildjokerdesign
02-25-2011, 06:44 AM
Ok did a bit of goggeling and it looks like the action script call for this is either:

getURL ("path/to/script.pl", "", "GET");
http://www.devshed.com/c/a/Flash/Building-Web-Forms-In-Flash/
http://www.tizag.com/flashTutorial/flashforms.php

Or:

form.loadVariables("path/to/script.pl", "POST");
http://www.kirupa.com/developer/actionscript/flash_php_email.htm

The two are interchangeable somewhat and depend on what you are wanting to do.
http://www.actionscript.org/resources/articles/44/2/Converting-Basic-HTML-Forms-to-Flash/Page2.htm