Workshop

 < Day Day Up > 

The Workshop consists of quiz questions and answers to help you solidify your understanding of the material covered in this hour. You should try to answer the questions before checking the answers.

Quiz

1:

When does the startDrag() action execute?

  1. When the user first clicks (and holds onto) the object.

  2. When the movie starts.

  3. It depends where you put the action.

2:

How do you create a new variable?

  1. Wait until the playback head has at least reached Frame 2.

  2. Just start using them as you need them, any time you want.

  3. Insert the action newVariable.

3:

Do you have to use ActionScript to change the alpha of a clip instance?

  1. Yes. You do it via the _alpha property.

  2. No. You can use the _visible property.

  3. No. You can do it by hand via the Color Styles drop-down list in the Properties panel.

Quiz Answers

A1:

C. You could make the startDrag() action execute at any time you want. It's up to you where you put the code (in a keyframe or a button, for example).

A2:

B. Although it's possible to initialize a variable other ways, it's not necessary. You can just start using variables as you need them.

A3:

C. This is, of course, a trick question. There is a __visible property, but you haven't learned about it yet. When _visible is set to false, the clip disappears. When _visible is set to TRue, the clip is fully visible. I just wanted to point out that you can change properties by hand during authortime (by using the Properties panel, for example), although this doesn't enable you to see properties change at runtime.

     < Day Day Up > 


    Sams Teach Yourself Macromedia Flash 8 in 24 Hours
    Sams Teach Yourself Macromedia Flash 8 in 24 Hours
    ISBN: 0672327546
    EAN: 2147483647
    Year: 2006
    Pages: 235

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