Create a Flash 5 Form & Retrieve Form Values on UD Page

Omar Elbaga of udnewbie.com has completed a tutorial that will demonstrate how to create a form in Flash 5 and retrieve the values of that form in an Ultradev page.  Code examples are provided for both ASP(VBScript/Javascript) & Coldfusion.
UDnewbie.com > UltraDev Tutorials for the UDnewbie
home I previous I next I demo
1 2 3 4
Create Flash login form.


Step 2:

1. We need to create the action for the form now which is to submit the form variables (values of the 2 textfields) to our page. Our page will be called flash_form.asp or flash_form.cfm.

2.
right click your button symbol and go to Actions. Insert the following code:


This could be done in a friendly manner using the friendly object actions on the left, but I showed you the final code on the right.
Whats going on?
After the button is clicked and the mouse is released we are creating a hidden form value called submit with the value of submit. This is to let us know later on if the form was submitted. We are then redirecting and sending all the variables by POST to our web page which will accept the variables. We will display what was submitted on that page.
So we have 3 form variables in this form: 2 the User will fill out and 1 pre-defined:
txtUsername, txtPassword, submit
These will be retrieved on our web page.

3. Save your flash document as flash_form.fla and then go to File > export Movie and save it as flash_form.swf

We are finished with the Flash section, we will move now to Ultradev and utilize our Flash form.

1 2 3 4
Create Flash login form.
home I previous I next I top I demo

Omar Elbaga

Starting out as a fine artist, Omar Elbaga gradually moved to computer graphic arts. He was particularly amazed by the power of the World Wide Web, so he embarked upon building small-scale sites for fun utilizing HTML and his Art background. Falling in love with designing web pages and its potential, he began a career in web design. Omar has since been in the web development field for several years. With his head in computer books nearly 24 hours a day, Omar moved on to enhance his skills from web design to web programming.

Most of his work involves building database-driven web sites for small companies. Omar is currently running a popular Dreamweaver MX resource site named dmxfire.com

See All Postings From Omar Elbaga >>

Comments

Be the first to write a comment

You must me logged in to write a comment.