• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 16. A Component-Based Flash Quiz > Validating Component Data

Validating Component Data

In this task you'll ensure that users actually make a selection before clicking the Next Question button. If they do not make a selection, they will see an error message and won't be able to continue.

The error message is simply a movie clip that we provided (it's in the current movie's Library). As an overview, here's how it will work: You'll drag an instance of the movie clip to the stage, so it's always present. You'll use ActionScript to make it invisible. Then, if a user does not choose an option, you'll toggle on the visibility of the movie clip rather than going to the next screen.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint