Groups | Blog | Home
all groups > flash (macromedia) > september 2004 >

flash (macromedia) : Form Problem


IMDaNuBe
9/28/2004 11:26:22 PM
I have this flash file set up right now, and I'm trying to do a form mail.
However the problem is, I don't know how to do the reset part and the submit
part. Please, can someone tell me how I can do it? (Don't do it FOR me, but
please show me the light!)

I will add a link to my file:

http://www.direhive.com/flash.zip

Thanks SOOOO much!


IMDaNuBe
9/29/2004 8:00:03 AM
Journeyman
9/29/2004 12:23:12 PM
There are quite a few ways of doing this, but all of them involve communicating
with an external script. Before attempting this sort of thing you should be
familiar communicating with external files in Flash and the relavant of
scripting and security issues.

If you're using MX2004 look up 'Working with external data' and especially
'Sending and loading vaiables' under the Using ActionScript help section.
(similar stuff can be found in older versions of Flash help too).
You'll probably find using the loadVariables function the easiest to get to
grips with, so I suggest paying particular attention to that.

In the mean time, here's a brief explanation:

I use PHP a lot, so my form mail scripts are usually written in that, but you
can use whichever language you like.
I create a mail script that also produces messages for successful submission,
missing fields etc.
My flash form is held in a movie clip and has this sort of action on the
submit button

loadVariables("script/mailscript.php", this, "POST");

This will execute the script and read in any variables it produces.
As the entire form is held in a movie clip you can then attach an
onClipEvent(data) action to it, so that it will respond to any mail script
variables read by the loadVariables action.

I hope this helps to get you started.

IMDaNuBe
9/29/2004 5:05:31 PM
I've tried that, except for some reason, it won't work. I'm an experienced PHP
programmer and know ow to connect files, just that I cannot seem to be able to
get it working!

Please take a look at the FLA file...

Thanks....
IMDaNuBe
9/29/2004 11:53:33 PM
IMDaNuBe
10/1/2004 12:06:56 AM
IMDaNuBe
10/3/2004 3:59:29 AM
urami_
10/3/2004 1:15:42 PM


[quoted text, click to view]

Sorry , most of us stay with MX due to lots of known issues in MX 2004. Even
tho upgrades has been made there are still some unreasonable changes that do not
suit older users especially these who work with animation , like the UNDO feature.
Therefor the 2004 is not as popular and support is not as you would like it to be.
I would love to help you but I simply don't open that program at all , and won't till
the next release.

--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
Journeyman
10/4/2004 1:14:05 PM
I've attached an amended version of you fla.

The entire form is now contained in a seperate MC.
I've commented most of the changes so hopefully you should have few problems
finishing it off.

Let me know if you get stuck.
IMDaNuBe
10/7/2004 9:34:16 PM
AddThis Social Bookmark Button