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

Q&A

Q1:Why can't buttons be made selectable?
A1: To be selectable, the user should be able to click on the item and change its appearance. A button will change its appearance while it is clicked but will always revert to the up state when the click is complete.
Q2:Can the third method of using hitTest—the one that includes a true as the third parameter so that the shape of the movie clip is taken into account—be used to more accurately determine whether the user has clicked a movie clip?
A2: Certainly. As a matter of fact, you should use the third parameter so that the click area of a movie clip is defined by its shape rather than its rectangle.
Q3:Many examples in this hour use nearly identical scripts applied to several movie clips. Is there a better way to do this?
A3: Yes and no. By the time you finish this book, you will be good enough to use root level functions to take over much of the work done by each movie clip script. But you will usually still need to start with the onClipEvent handlers attached to each movie clip. These handlers will then call root level functions that appear once in your movie instead of repeating lines of code in each movie clip script.
Q4:How can I expand on the matching game?
A4: You can build up the matching game to become a deep educational or computer-based training game. However, you will probably want to go through the rest of this book first and become more confident at ActionScript programming first.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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