MACROMEDIA FLASH 8-FLASH Dokumentacja Strona 250

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 290
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 249
250 ActionScript: Create a Form with Conditional Logic and Send Data
4. Click in the Script pane of the Actions panel, and type the following
comment:
// Stops the playhead at Frame 1.
Press Enter (Windows) or Return (Macintosh).
5. Type stop(); to add the stop action.
Add frame labels for navigation
When the viewer presses the Submit button, you want Flash to jump to
either the error message or the confirmation message, depending on what is
entered in the text field. Labeling a frame helps you reference it in
ActionScript easily. This is helpful for sending the playhead to a
specific frame.
Next, you’ll add frame labels to help you navigate your Flash application.
1. Add a keyframe (Insert > Timeline > Keyframe) to Frame 5 of the
Actions layer.
2. In the Property inspector, type error in the Frame Label text box.
Press Enter (Windows) or Return (Macintosh). The label text and a
flag appear in Frame 5 of the Timeline.
3. Add a keyframe to Frame 10 of the Actions layer.
In the Property inspector, type confirm in the Frame Label text box.
Press Enter or Return.
Przeglądanie stron 249
1 2 ... 245 246 247 248 249 250 251 252 253 254 255 ... 289 290

Komentarze do niniejszej Instrukcji

Brak uwag