Skip to main content
May 15, 2007
Question

Forms in Flash

  • May 15, 2007
  • 20 replies
  • 1233 views
Hello everyone,

http://www.elumdesigns.com/catalog

Is there any way to create a form similar to this in Flash? I need it to be embedded within the .swf and not using html.

Any help would be MUCH appreciated!:)

Thanks

Kit
This topic has been closed for replies.

20 replies

May 30, 2007
But how do I make the fields which I create in the authoring environment be governed by the action script which communicates with the php form?
kglad
Community Expert
Community Expert
May 30, 2007
in the properties panel, give them instance names. and use those instance name when assigning property values to your loadvars object.

for example, if you have a textfield with instance name emailTF you can use something like:

kglad
Community Expert
Community Expert
May 30, 2007
you can create textfields in the authoring environment or with actionscript. the code to do that with actionscript is above.

do you know how to create static and input textfields in the authoring environment? you can give the textfields any instance name you want but yes, you would usually pick something easy to remember and type and something that gives you an idea of that textfields role in your project.
May 30, 2007
But how do I create the text fields which will carry out this action script? Do I just create text input fields with the instance names of "Store_Name", "Attention", "Address", "City", "State", "Zip_Code", "Telephone", "Fax", and "EMail"?
kglad
Community Expert
Community Expert
May 30, 2007
you're probably most comfortable using the authoring environment to create the on-stage objects, so you should just do that.

in your submit button you'll create a loadVars object (say sendLV) and assign its properties and values using your textfield text properties.

you can then use:

receiveLV=new LoadVars();
sendLV.sendAndLoad("php/email.php",receiveLV,"_POST");

// and you can use the onLoad() method of receiveLV to ensure the data have been sent successfully.
May 30, 2007
That's fantastic. Thank you.

Now how do I customize the appearance of the form in the website? I see you have drawn the fields with action script, but how do I now customize them to match the look and feel of my site?
May 30, 2007
That's fantastic. Thank you.

Now how do I customize the appearance of the form in the website? I see you have drawn the fields with action script, but how do I now customize them to match the look and feel of my site?
kglad
Community Expert
Community Expert
May 30, 2007
ok, the email form is working on their website.

i uploaded form.html and form.swf to the main directory (var/www/html) and email.php to var/www/html/php.

if you naviagate with a browser to

http://www.elizabethandhomer.com/form.html

you'll see the form. if you fill out the form fields and click submit the info is sent to the email address in email.php. currently the recipient's email address is set as mareno76@hotmail.com.
May 30, 2007
Hi kglad,

Sorry it took a while to get back to you with this info. I had to get the ftp info from my client. Here is the correct info...

Username: ihsmith%elizabethandhomer.com
Password: ihsmith

Thanks very much for helping me with this..

Kit

kglad
Community Expert
Community Expert
May 20, 2007
no, i tried those originally and received a "wrong user name" message from the server.
May 20, 2007
The username/password is the same for the ftp as far as I know--let me know
if this isn't what you need, and I'll contact the customer support people.

Hostname: elizabethandhomer.com
Username: ihsmith
Password: ihsmith