PDA

View Full Version : Submit flash button help (PLEASE!!!)




BakedBeans
Oct 30, 2005, 11:43 AM
His guys and gals, i need some help with getting my submit button to work in flash.

i need one of you nifty lot to tell me how to get this submit button to work properly :)

what i need is for them to fill out the form then it to email mail to me, any help is much appreciated.



http://img413.imageshack.us/img413/7649/picture14aq.jpg



littlejim
Oct 31, 2005, 07:42 PM
I'm pretty sure it's not that straight forward.

At a guess, you are going to have to send the variables from the form to a CGI/Perl/PHP script that will do the dirty work of emailing the details to you. I am sure your ISP will have some pre-installed scripts to do this.

There is a sample FLA (supplied with Flash MX2004 Pro - installed, I think, in the application folder) that demonstrates a simple guest book that communicates with a php script. Maybe that might start you in the right direction and give you some clues?

Alternately, have you tried searching http://www.flashkit.com. It's not the best web site it the world, but it's been going for ages and has a massive selection of examples and tutorials.

EDIT : Here is a link to an (old) tutorial - I am sure better ones exist but this should help :

http://www.flashkit.com/tutorials/Dynamic_Content/E-mail_i-Jeffrey_-658/index.php

robx2
Oct 31, 2005, 08:57 PM
Script it. If you put the action on the button, like it looks like you want to do:

on (release) {
getURL ("mailto:yourEmail@yourDomain.com")
}

If you do it in an actions layer, give the button an instance name like submit_btn and:

submit_btn.onRelease = function(){
getURL ("mailto:yourEmail@yourDomain.com")
}

Let me know if it works.

robx2
Oct 31, 2005, 09:02 PM
Ah wait... more complicated. Sorry. Yeah, you're gonna have to use some php or server side scripts if you want to send the info to yourself.

Here's a tutorial that uses CGI scripting...

http://www.were-here.com/content/templates/articles.asp?articleid=654&zoneid=7

ZoomZoomZoom
Nov 1, 2005, 12:03 AM
I've got no time on my hands right now... it's midnight and I haven't done any of my homework yet. College is really spoiling me...

But

www.kirupa.com is a good resource for Flash. If anyone here can't solve your problem, the forums at kirupa are friendly and some of the members there are literally professionals at Flash.