MACROMEDIA FLASH 8-FLASH Specifications Page 245

  • Download
  • Add to my manuals
  • Print
  • Page
    / 290
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 244
245
21
CHAPTER 21
ActionScript: Create a Form with
Conditional Logic and Send
Data
You can create a form with conditional logic that allows the SWF file to
respond to user interaction and send the form data from the SWF file to an
external source. This tutorial shows you how to create a simple form.
Before taking this lesson, you should be familiar with writing functions
and variables; to learn about these, select Help > Flash Tutorials > Basic
Tasks: Create an Application.
You can print this tutorial by downloading a PDF version of it from the
Macromedia Flash Documentation page at www.macromedia.com/go/
fl_documentation.
In this tutorial, you will complete the following tasks:
Set up your workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
Add an input text field to collect form data . . . . . . . . . . . . . . . . . . 246
Add a Submit button to the form . . . . . . . . . . . . . . . . . . . . . . . . . . .247
Add an error message. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Add a confirmation message. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Add a stop() action. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Add frame labels for navigation . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
Add conditional logic for the Submit button. . . . . . . . . . . . . . . . . . 251
Pass data out of a SWF file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
Write a function for the Try Again button . . . . . . . . . . . . . . . . . . . 253
Test your SWF file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
Page view 244
1 2 ... 240 241 242 243 244 245 246 247 248 249 250 ... 289 290

Comments to this Manuals

No comments