Workshop

I l @ ve RuBoard

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?

A1:

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

2:

How many different ways are there to use hitTest ?

A2:

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:

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

A3:

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:

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

A4:

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

I l @ ve RuBoard


Sams Teach Yourself Flash MX ActionScript in 24 Hours
Sams Teach Yourself Flash MX ActionScript in 24 Hours
ISBN: 0672323850
EAN: 2147483647
Year: 2002
Pages: 272

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net