P. 1
Flash Tutorial

Flash Tutorial

|Views: 286|Likes:
Published by Haveit12

More info:

Categories:Types, Graphic Art
Published by: Haveit12 on Mar 17, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/20/2011

pdf

text

original

Create a Form with Conditional Logic and
Send Data

You can create a form with conditional logic that allows the SWF file to respond in different ways,
depending on user interaction, and send the form data from the SWF file to an external source. In
this lesson, you will create a simple form as you complete the following tasks:
•Add an input text field to collect form data
•Create a button symbol
•Add a stop() action
•Write a script that validates the form with conditional logic
•Pass data out of a SWF file
•Write a function

Before taking this lesson, you should be familiar with writing functions and variables; to learn
about these, select Help > How Do I > Quick Tasks > Create an Application.

Set up your workspace

First, you’ll open the start file for the lesson and set up your workspace to use an optimal layout
for taking lessons.

1.To open your start file, in Flash select File > Open and navigate to the file:

On Windows 2000 or XP, browse to boot drive\Documents and Settings\All Users\
Application Data\Macromedia\Flash MX 2004\language\Configuration\HelpPanel\
HowDoI\BasicActionScript\start_files and double-click simpleForm_start.fla.

Note: If the Application Data folder is hidden, you’ll need to change your Windows Explorer
settings to see the folder.

On Windows 98, browse to boot drive\Windows\Application Data\Macromedia\Flash MX
2004\language\Configuration\HelpPanel\ HowDoI\BasicActionScript\start_files and
double-click simpleForm_start.fla.

On Macintosh, browse to Macintosh HD/Users/Shared/Application Support/Macromedia/
Flash MX 2004/language/Configuration/HelpPanel/HowDoI/BasicActionScript/start_files
and double-click simpleForm_start.fla.

106

Chapter 14: Create a Form with Conditional Logic and Send Data

Note: The BasicActionScript\finished_files folder contains completed versions of lesson FLA
files, for your reference.

2.Select File > Save As and save the document with a new name, in the same folder, to preserve
the original start file.

3.Select Window > Panel Sets > Training Layout to modify your workspace for taking lessons.

4.If necessary, drag the lower edge of the Timeline (Window > Timeline) down to enlarge the
Timeline view.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->