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:

What properties return the location of the mouse in the movie?

A1:

To answer just _xmouse and _ymouse is not enough. This would return the location relative to the movie clip if the code is inside a movie clip. However, _root._xmouse and _root._ymouse give you the location relative to the movie.

2:

What movie clip handler tells you when the cursor enters the movie clip?

A2:

There is none. You have to constantly check for it yourself using variables and hitTest .

3:

What does the command myMovieClip.swapDepths(99999) do?

A3:

This places the movie clip myMovieClip at level 99999. If nothing is above that level, the movie clip appears on top of everything else. If something is already at level 999999, it will now be at the previous level of the movie clip.

4:

What ActionScript do you need to make animated custom cursors ?

A4:

You need the same ActionScript that you would need to make a static custom cursor. However, the movie clip with the cursor would need to be more than one frame with an animation.

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