Home > Articles > Graphics & Web Design > Dreamweaver & Flash

  • Print
  • + Share This
This chapter is from the book

Workshop

The quiz questions are designed to test your knowledge of the material covered in this hour. The answers to the questions follow.

Quiz

  1. When a user clicks, which movie clip gets the mouseDown event?

  2. How many different ways are there to use hitTest?

  3. Do the shapes of two movie clips need to touch for hitTest to detect an overlap?

  4. What unique function does startDrag perform that cannot be done any other way in ActionScript?

Quiz Answers

  1. All of them. These handlers get triggered in all movie clips rather than just the one clicked on.

  2. Three. You can use it with an x and y location; an x and y location and a third parameter, true or false, as to whether the shape instead of the rectangle of the movie clip is used; or you can use it with two movie clips to see whether they overlap.

  3. No. If you use hitTest with two movie clips, it only matters that the rectangles overlap, regardless of any unusual shape that the movie clip graphics may have.

  4. None. The startDrag command doesn't do anything that can't be re-created with other ActionScript code.

  • + Share This
  • 🔖 Save To Your Account