Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

BakedBeans

macrumors 68040
Original poster
May 6, 2004
3,054
0
What's Your Favorite Posish
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.



picture14aq.jpg
 
L

littlejim

Guest
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

macrumors member
May 27, 2005
69
0
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.
 

ZoomZoomZoom

macrumors 6502a
May 2, 2005
767
0
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

http://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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.