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

Lesson 7. Checking Input & Displaying Er... > Using Conditional Logic to Respond t...

Using Conditional Logic to Respond to User Input

You should be able to see from the previous task how Flash ActionScript is event-driven. Everything that happens does so because of an event, whether it is user-initiated, such as clicking or rolling over something, or a timeline event, such as entering a frame. The process of writing scripts usually begins by identifying the triggering event and then specifying the response.

In this task, you want the error message to appear if the user does not enter the correct text in the two text fields. The user event that triggers this check is when the user clicks the invisible button placed over the Select button in the screenshot. Therefore, the script that will do the work will be attached to that invisible button. Since that button already has a script on it, you'll be modifying it.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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