1. week 1
  2. week 2
  3. week 3
  4. week 4
  5. week 5
  6. week 6
  7. week 7
  8. week 8
  9. week 9
  10. week 10
  11. week 11
  12. week 12
  13. week 13

kirupa.com Tutorials

Tuesday, November 3, 2009

Fall 09 week 8:
11/02/09: Wed. 9:00 - 12:00

Hi Everybody,
Good Work, yesterday! Let's keep it up. There's homework this week, and extra credit. Have a nice week.
Carter-

    WEEK 8
  1. Classwork
    • LINK    This week's class files
  2. Homework
    • exercise 1— Making a Movie-Clip behave as a button:
      1. Draw a rectangle with the following characteristics:
        1. width: 150px;
        2. height: 25px;
        3. fill color: light gray;
        4. stroke color: dark gray;
        5. stroke width: 5px;
      2. Select the fill (NOT the stroke).
      3. Convert it to a movie-clip named rFill_mc.
      4. Temporarily, cut and Paste it into its own layer.
      5. Give it the instance name of rFill.
      6. Move this layer below the first layer and lock it.
      7. Select the entire stroke and convert it to a movie-clip named rStroke_mc.
      8. Give it the instance name of rStroke.
      9. Unlock both layers, and select both the stroke and the fill on the stage.
      10. Convert them together into another movie-clip named btn_mc.
      11. Give it the instance name of rect.
      12. Delete the blank layer.
      13. Enter into edit mode for the rectangle.
      14. Once inside the rectangle movie-clip, select both the fill and the stroke on the stage.
      15. Then, right-click on top of your selection and choose distribute to layers. Make sure the stroke layer is on top.
      16. Delete the blank layer, and exit edit mode.
      17. What you have now is a set of nested movie-clips: you have the main movie-clip named rect, and the nested movie-clips inside, stroke and fill.

      18. Your job for homework is to make ONLY THE STROKE change to RED when the user mouses over; and then, when the user mouses off, for the color to go back to its original dark gray.



    • extra credit: Using BUTTON SYMBOLS as buttons (and NOT movie-clips as buttons), together with the VISIBLE property, create a very simple drop-down menu with a total of 5 buttons in it.


No comments:

Post a Comment