A Flash Developer Resource Site














Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Featured Flash FLA
Gallery Downloads 11337 Flash Movies | 1 New Flash Movies Added
What's New | Top 100

Featured FLA

» Author: Bugra Ozden
» Title: Skatalog v9 - product catalog
» Description: Create your product catalog easly and publish on your website or Create your image gallery, documents list, portfolio. Fully XML Driven
» More by Bugra Ozden


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

Featured Site

» Posted in the Flash Kit Links section
» Title: Creative DW Image Show PRO
» Description: Creative DW Image Show PRO is a Dreamweaver extension which enables the user to create multimedia presentations. It combines the features of the popular Creative DW Image Show with the ability to add professional text effects to slides (similar to After Effects). The product is very customizable: the user can choose the duration of the transition effects, the slide motion start and end position, zoom and panning type for both images and texts.


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

» Make a Flash Slide Show Screen Saver
» Simple flash making tutorial for thanksgiving
» Create flash banner for website
» Create xml slideshow with free template
» How to Insert a Multilingual Subtitle Into Your Flash Video Studio
» How to Create Cool Halloween Slideshow
» Debugging flash using the Firebug console
» Create Flash Slideshow on Blogger
» FLASH TRICKS IN WEB ADVERTISING: FLASH BANNERS
» Unknown Tag: Title10
Random Tutorial | Add Site

Sr Instructional Designer D2L-Moodle,Clearance
WSI Nationwide, Inc.
US-NJ-Fort Monmouth

Justtechjobs.com Post A Job | Post A Resume


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.87 Votes: 197
Hits: 8601
» 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
 
   
 

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs