Internet Commerce

Partners & Affiliates

Developer Channel


Featured Flash FLA
Gallery Downloads 11401 Flash Movies | 5 New Flash Movies Added
What's New | Top 100

Featured FLA

»  Author: Nick Kouvaris
»  Title: Znax
»  Description: Znax is a board game. Click 4 tiles of the same color and form squares as big as you can. You will erase all the tiles inside the square and collect points. Get maximum score if you make a square with game edges.
»  More by: Nick Kouvaris


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 4941 Flash Sites | 1 New Flash Links
What's New | Top 100 Flash Site

Featured Site

»  Author Agence WOP Digital Agency
»  Title: Electricdrum
»  Description: French WOP Agency, 3D websites, Flash (Papervision, Away 3D), event or institutional projects. The agency operates on all digital projects: consulting, design, graphic design, development, online communication. The WOP agency follows you on the implementation of original, creative and optimized digital projects.


Random Links | Add your own Flash Related Links
Flash Tutorials 1481 Tutorials 7 New Tutorials Added!
What's New | Top100

» How To Make A Simple Animation Using Christmas Clips
» Simple Step by step flash game tutorial Spot the diffrence
» How To Make A Moving Text Slide
» Create Flash Banner With Text Float Effect
» How To Make Zoo Photos Slideshow
» How To Make A Dolphin Photos Slideshow
» How To Make A Fathers Day Slideshow
» How To Make A Transparent Background of Your Flash File
» Create Flash Banner With Text Disco Light Effect Today we will introduce you a Text Disco Light eff
» Unknown Tag: Title10
Random Tutorial | Add Site


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Actionscripting

Categories Creating an Interactive Form in Flash
Author: Chris Falkenstein

 
Page 7
«prev 1 2 3 4 5 6 7 8 9 next»

Step 6: Adding Action Scripting to the Submit Button


Right click on the layer call "Buttons". In the menu that appears select Lock Others. This will allow us to focus on just the buttons.

Right click on the submit button at the bottom right hand side of the form. Select Actions in the menu that appears. This will open your Actions Panel. Click on the "+" sign at the top left hand side of the panel. Select Actions, set variable. This will insert some code into your Actions panel. In the field titled Variable type in "subject". In the field titled Value enter "Feed Back Form". You can give the Value field anything you want. This is the subject that will appear in email that the form sends.

Click on the "+" again and Select Actions, set variable to insert another variable. Type in "recipient" for the field titled Variable. Type in your email address for the field titled Value. This is where you tell the cgi script where to email the form results. Setting variables here is like creating hidden form fields in HTML.

The cgi script now knows what the subject is and who to send the results to, but we still have to tell Flash to send the field values that the user fills out (FirstName, LastName, ect.). For this we use the loadVaribles action.

Click on the "+" sign. Select Actions, loadvariables. In the field titled URL type in the web address of the form to mail script that your using. Leave the Location field to 0. Select "Send using GET" from the Variables pull down menu.

All right, now we're gettin' somewhere. When the user selects the submit button we not only want the information sent to us via email, but we want to thank our users for the feed back. So after the variables are loaded, which we just did, we want to send the user to the personal thank you frame.

Click on the"+". Select Basic Actions, Go to. The Go to code will be inserted into the Actions panel. Leave the the Scene field to <current scene>. Select Frame Label from the Type pull down menu and type in "ThankYou" in the field titled Frame. "ThankYou" is the name of the frame we will be creating very soon.

When we select our submit button and take a look at the Actions panel our code should be similar to the image above. It's important that the code is in the above order. If something is out of order you can use the up or down arrows at the top right hand side of the Actions panel to move the code up or down a level.

«prev 1 2 3 4 5 6 7 8 9 next»

» Level Intermediate

Added: : 2001-02-26
Rating: 7.89 Votes: 199
Hits: 8609
» Author
No details available.
» Download
Download the files used in this tutorial.
Download (104 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments