View Full Version : Input Fields to Email - In Flash
tyoelin
08-15-2006, 10:42 PM
Hi all... I hope I'm advanced enough to understand how to get this to work with your help :)
I'm using Macromedia Flash 8 (published to v 7.0) to make my website. I have a contact page that I want to set up with three input fields and a send button. When the user presses the send button, I want it all to be put into an email and sent to my email address.
I read about BlueMail a little bit, but that only seems to work with HTML? I'm not using any html and I dont see any place to input any in my .fla file. Is there a relatively simple way to do this, or does anyone know of a tutorial?
Thanks!
page1ink.
08-15-2006, 10:53 PM
Check out this link (http://www.kirupa.com/developer/actionscript/flash_php_email.htm). That should answer your question =)
tyoelin
08-15-2006, 10:55 PM
you rock :)
ill give it a shot...
tyoelin
08-16-2006, 12:41 AM
Check out this link (http://www.kirupa.com/developer/actionscript/flash_php_email.htm). That should answer your question =)
Alright, I've everything working as it should... but I want to make one tiny modification and I can't figure out how. Instead of advancing it one frame in the "root" file, I want it to advance one frame inside that same movie clip (the advancing is done when the user clicks "submit" and then is directed to the next frame which is my thank you message). The tutorial gives the code for advancing it as _root.nextFrame() or something like that. But when I use that, it advances it in the topmost timeline, which is a layer above where i want it to advance.
Not sure if I did a good enough job of explaining it, but I'm sure there has to be a one word swap of _root to fix it, I just can't figure out which :)
(i've tried just using the nextframe() without the root, but that didn't advance at all)
Other than that small matter of preference, everything worked perfectly thanks!!
Basil
08-16-2006, 06:30 AM
nextFrame() should work fine.
Or I think if you're advancing the timeline of a specific movie clip you can give it an instance name and say 'name.nextFrame()' or 'name.gotoAndStop(2)'.
tyoelin
08-16-2006, 11:37 AM
nextFrame() should work fine.
Or I think if you're advancing the timeline of a specific movie clip you can give it an instance name and say 'name.nextFrame()' or 'name.gotoAndStop(2)'.
sweet that makes a lot of sense, thanks =)... i dont have access to change it right now, but im confident that i can figure that out
tyoelin
08-20-2006, 12:47 AM
Ok I've tried some different methods but I still can't get the send button to forward the slide one. I am loading the page externally, and inside the contact page I have everything inside a movie clip (which has been named and given an instance name). The tutorial that I used (link above - 2nd post) says to put the action for advancing the slide on the movie clip of the forms, after a line of code that will only allow it once the information from the forms has been retrieved.
Well, the send button is retrieving the message and info because I am getting the emails with the proper information, but for some reason it wont get down to that line of code that says advance one.
The action that I have on the send button:
on (release) {
form.loadVariables("email.php", "POST");
}
The action that I have on the movie clip of the input forms:
onClipEvent(data){
contact_page.nextFrame();
}
For the contact_page.nextFrame(); I've tried just putting nextFrame(), as well as leaving the default _root.nextFrame() but none work. Is there something I need to replace the "data" with on the onClipEvent(data) portion?
Basil
08-20-2006, 10:38 PM
http://theinternetisseriousbusiness.com/bh/nextframe.fla
Example I made in Flash MX, I'm not sure if they changed anything in Flash 8.
tyoelin
08-21-2006, 11:56 AM
http://theinternetisseriousbusiness.com/bh/nextframe.fla
Example I made in Flash MX, I'm not sure if they changed anything in Flash 8.
I know how to get the frame to advance, that is working fine. But it wont advance and collect the info from the input fields to send the email. It seems that it will only do one or the other.
The actionscript on the movie clip of the input fields is
onClipEvent(data){
this.gotoAndPlay("sent");
}
where 'sent' is the label of the frame that i want it to advance to (i've also tried nextFrame(); and an assortment of other advancement methods. This should only advance the frame after the loadvariable has completed loading every input field, but I obviously can't get it to work.
the button just triggers the input information to load into my php script.
anyone know how to get it to advance after the info has loaded?
tyoelin
08-22-2006, 10:59 PM
Seem to have found the problem... upgrading the ZendOptimizer to the most recent version has fixed the contact field. Even thought the php script I'm using doesn't call the ZendOptimizer, the newer version was being called by the server to execute the php, but wasn't installed on my server yet. Something to that degree... anyways, it works now, yay!
Thanks to all who helped!
boringo1994pr
01-19-2008, 11:39 AM
:D This works just fine!!! FINALLY!! :D
Been bangin my head and my hands for almost two days on this...
Oliver
corrina
02-04-2008, 08:06 PM
This seems to require that the user input to all fields for the email to be received. I'd like to eliminate the user name and email fields and just let them enter the message body/send. Could someone help me figure out how to adjust the .php and/or .swf for this? I'm staring at it..not making progress.
thanks very much:)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.