Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE FLASH: Adobe Flash ForumAdobe Flash TutorialsAdobe Flash Video TutorialsWeb Streaming ForumAdobe Flash

Need help with a contact form in flash

Cow Forums : Adobe Flash
Need help with a contact form in flash
by Sabrina Crayne on Jul 18, 2008 at 1:43:45 pm

I need help getting a pre-made contact form in flash to work.
I am a little lost on this one. Any help would be greatly appreciated.

Thanks,
Sabrina

Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Sam Mattern on Jul 18, 2008 at 4:02:23 pm

I just created a form from scratch in Flash. What do you know about it? Can you post any of the code?



Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Sabrina Crayne on Jul 18, 2008 at 5:59:22 pm

Truthfully not alot. I haven't done a conact form before,e specially not in flash. But if I understand it correctly the code is placed at the submit and reset button areas in Action Script? Am I anywhere close?

If that is correct and I get get the code somewhere online I can post it. It is my understanding also that the code needs to be php and I don't know anything about php, so have no idea how to write it myself.

Sabrina



Respond to this post     Return to posts index


Re: Need help with a contact form in flash
by Pieter Helsen on Jul 18, 2008 at 6:43:01 pm

Basically what you have to do is attach actions to your flash buttons (submit and reset). Do you know if this is done in Actionscript 2 or 3? This is how it works.

1. User inputs data in flash
2. User presses the submit button
3. Flash saves all the values to variables
4. Flash sends these variables to PHP (through LoadVars)
5. PHP receives the variables and sends an e-mail to you with the data from the contact form.

We will need to know a few things though:
A. Is the code written in AS2 or AS3 (if you paste some of it, we will be able to tell)
B. Does your server support PHP files to begin with? :)

Kind regards,
Pieter

Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Sam Mattern on Jul 18, 2008 at 6:49:16 pm

I didn't know ANY PHP before creating my form. It's pretty straight forward. I can give you my PHP code and show you how to modify it. It's pretty easy. Setting up the variables in flash is easy to, unless you have drop down boxes. I had to create a workaround for that.



Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Sabrina Crayne on Jul 18, 2008 at 7:11:53 pm

OK, sounds good. thank you so much for helping.

Sabrina



Respond to this post     Return to posts index


Re: Need help with a contact form in flash
by Sabrina Crayne on Jul 18, 2008 at 7:19:09 pm

I do know that the server does support php files.
Not sure about the Action Script. I think Sam has some code he is going to send to me that I can customize to work with our email address.

I will let you know how it goes. Thank you for your help.


Sabrina



Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Sam Mattern on Jul 18, 2008 at 7:23:54 pm

If you could send me the FLA to my email address, I could figure it out that way. I forgot that you said it was premade. My email is original.svelte at gmail.com



Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Sabrina Crayne on Jul 18, 2008 at 7:42:05 pm

Ok, Sam I just sent it. I sent the worng thing earlier. Sorry about that.

Sabrina



Respond to this post     Return to posts index


Re: Need help with a contact form in flash
by Sam Mattern on Jul 21, 2008 at 1:08:06 pm

What version of Flash are you using. I can't open the FLA, I get "Unexpected File Format." I'm still using Flash 8 Pro :(.



Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Sabrina Crayne on Jul 21, 2008 at 1:47:02 pm

It is in Flash CS3. I think the original file before I changed anything was in Flash 8.

Sabrina



Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Sam Mattern on Jul 21, 2008 at 1:53:59 pm

Is there any way to save it as a Flash 8 FLA? Or perhaps send the the original, and I can at least tell you how to add the pages, and you can just make the changes to your updated version.



Respond to this post     Return to posts index


Re: Need help with a contact form in flash
by Pieter Helsen on Jul 21, 2008 at 1:56:21 pm

File > Save As... Save as Type: Flash 8 Document

From now on, I would like to ask everyone to put [AS2] or [AS3] (corresponding to the version of actionscript you are using on your project) in front of their post titles when the question is actionscript related! Please help us help you faster. Thank you.

Kind regards,
Pieter

Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Sabrina Crayne on Jul 21, 2008 at 2:11:19 pm

I am very new to all this Flash business (as I am sure you can tell), so how can I tell which Action Script is being used?

Thanks,
Sabrina



Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Pieter Helsen on Jul 21, 2008 at 2:23:46 pm

Since it's Flash 8, AS2 :) This was just a general notice though, not directed at you in particular.

From now on, I would like to ask everyone to put [AS2] or [AS3] (corresponding to the version of actionscript you are using on your project) in front of their post titles when the question is actionscript related! Please help us help you faster. Thank you.

Kind regards,
Pieter

Respond to this post     Return to posts index


Re: Need help with a contact form in flash
by Sabrina Crayne on Jul 21, 2008 at 3:58:01 pm

Sam,

I saved the file in Flash 8 and sent it to you. Did you recieve it?

Sabrina



Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Sam Mattern on Jul 21, 2008 at 4:04:11 pm

Got it. It worked. Thanks Pieter! I'll hopefully have an answer here by 1 PM



Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Sam Mattern on Jul 21, 2008 at 4:07:28 pm

Are Forecast and News the pages you are trying to add? I noticed they both point to the contact page, as does contact.



Respond to this post     Return to posts index


Re: Need help with a contact form in flash
by Sabrina Crayne on Jul 21, 2008 at 4:13:57 pm

Yes, Forecast and News are 2 of the 5 pages that I need to add.
I need to add additonal pages for product, GPS, and FAQ as well.
If you can tell me how to do this, that would be super.
I apprecaite all yuor help.

Sabrina



Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Sam Mattern on Jul 21, 2008 at 5:15:47 pm

WOW, what a doozie. I cleaned up the layers and such for you. Added all of the actions onto the same layer. The site looks great, but wow is it poorly organized. I used a template from the same guy and it took me a weeks before I understood how to edit the stuff I needed to. With that said:

You change the page content in "Symbol 1" which can be accessed via the Library in the pop folder, or on the pages layer at the last frame.

The buttons are added in "menu6" located on the menu layer. The actions for each individual button set a variable "num" to 1,2,3,4,5, etc. This tells "Symbol 1" which frame to go to (each frame holds a different page).

If you need to add more pages than there are buttons you I suggest moving the buttons closer together vertically and adding more. That way, you keep the same convention without the work of adding scroll bars or editing code to make it work within a different scope.

Let me know if that's what you needed. If you need more help, I'm here.



Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Sabrina Crayne on Jul 21, 2008 at 5:23:38 pm

Thank you, thank you and thank you.

I appreciate all your help.

I will look over everything and see what else I need to do. Yeah I will proably have to add more buttons.

Sabrina



Respond to this post     Return to posts index


Re: Need help with a contact form in flash
by Sabrina Crayne on Jul 21, 2008 at 5:46:25 pm

Did you send me the fla file back? I haven't recieved it.

Thanks,
Sabrina



Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Sam Mattern on Jul 22, 2008 at 3:54:53 pm


Name: Sam Mattern
Date: Jul 22, 2008 at 11:41:10 am
Subject:Re: Need help adding pages to a Flash site template

To add a button:
1. Open "Menu6"
2. Add a new layer beneath "actions" and name it "buttonX", where x is the next number in line.
3. Create a keyframe on that layer two frames after the keyframe on the layer beneath it.
4. Copy the button on the layer beneath it, and paste and position it.
5. Give that button the instance name "itemX", where x is the next item number (add one to the item# of the button you copied)
6. Select the button and open the actions panel. Change the "num" variable to match the item number.


To set the title for the button:
1. Double click the button, then double click the current title
OR
1. Open "HOME copy" from the library.
2. Create a new keyframe directly after the last one. The frame # must match the "item#" and the "num" variable.
3. Change the text to reflect what you want the button title to be.
4. You can probably rename "HOME copy" to "ButtonTitles" without breaking anything. Save first!


To create the new page:
1. Open "PageContent" from the Library. It was previously named "Symbol1" in the "pop" folder.
2. Create a new layer beneath "actions" and name it "pageX" where x matches the "item#" and the "num" variable on the button.
3. Create a keyframe on the frame matching the "item#", etc, and layer name (for page10, keyframe goes on frame 10)
4. Set the page content on that keyframe. You can copy and paste-special the previous page and then edit it.
5. Create a blank keyframe on the next frame.


How this all works:
The "num" variable set on each button instance controls what button title to pull from "HOME copy".
The instance name set for each button controls what frame to go to in "PageContent" ("item2" points to frame 2, "item 3" points to frame 3). That's why the content is different on each frame. It's very important to keep name the layers appropriately so you don't mess up the numbers. Ultimately, setting the "num" variable on each button instance trickles down the line to control lots of stuff, so MAKE SURE IT IS SET CORRECTLY. If something breaks, check that first.

Hope this is clear enough.

Sam



Respond to this post     Return to posts index

Re: Need help with a contact form in flash
by Sher Ali on Jul 18, 2008 at 7:27:50 pm

If someone need a fast solution in emergency then you guys should checkout this site:
http://flashden.net?ref=SaafiDesign

her is a simple flash+php email form:
http://flashden.net/item/flash-email-form-2/3130?SaafiDesign


Sher Ali
Flash & Flex Developer
website: http://www.webeyestudio.com
blog: http://www.kabulinteractive.com/blog
My FlashDen Portfolio

Respond to this post     Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]