Add an error message
107
Add a Submit button to the form
The Library panel contains a Submit button symbol that you will add to the form.
1.
From the Library panel (Window > Library), drag the Submit button to the Stage and place it
over the SubmitURL guide.
2.
Drag the button or use the arrows keys to adjust the position, if necessary.
3.
In the Property inspector, type
submit_btn
in the Instance Name text box.
Add an error message
You’ll add a message to display if the user clicks the Submit button before entering data.
1.
In the Timeline, with the Branding layer selected, click the Insert Layer button and name the
layer
Dialog Boxes
.
2.
Select Frame 5 of the Dialog Boxes layer. Right-click (Windows) or Control-click (Macintosh)
the selected layer and select Insert Blank Keyframe from the context menu.
3.
From the Library panel, drag the Dialog Box-error movie clip to the center of the Stage.
4.
In the Timeline, select Frame 5 of the Buttons layer. Drag the Try Again Button symbol from
the Library panel to the Stage, placing the button below the error message text.
5.
With the button still selected, in the Property inspector, enter
tryAgain_btn
in the Instance
Name text box.
Summary of Contents for FLASH MX 2004-LEARNING FLASH
Page 1: ...Learning Flash...
Page 8: ...8 Contents...
Page 34: ...34 Chapter 3 Write Scripts with ActionScript...
Page 54: ...54 Chapter 6 Create a User Interface with Layout Tools...
Page 62: ...62 Chapter 7 Draw in Flash...
Page 68: ...68 Chapter 8 Create Symbols and Instances...
Page 76: ...76 Chapter 9 Add Animation and Navigation to Buttons...
Page 104: ...104 Chapter 13 Add Interactivity with ActionScript...
Page 112: ...112 Chapter 14 Create a Form with Conditional Logic and Send Data...
Page 122: ...122 Chapter 15 Work with Objects and Classes Using ActionScript 2 0...