Hi Everybody,
Good Work, yesterday! Let's keep it up. There's homework this week, and extra credit. Have a nice week.
Carter-
- Classwork
- LINK This week's class files
- Homework
- exercise 1— Making a Movie-Clip behave as a button:
- Draw a rectangle with the following characteristics:
- width: 150px;
- height: 25px;
- fill color: light gray;
- stroke color: dark gray;
- stroke width: 5px;
- Select the fill (NOT the stroke).
- Convert it to a movie-clip named rFill_mc.
- Temporarily, cut and Paste it into its own layer.
- Give it the instance name of rFill.
- Move this layer below the first layer and lock it.
- Select the entire stroke and convert it to a movie-clip named rStroke_mc.
- Give it the instance name of rStroke.
- Unlock both layers, and select both the stroke and the fill on the stage.
- Convert them together into another movie-clip named btn_mc.
- Give it the instance name of rect.
- Delete the blank layer.
- Enter into edit mode for the rectangle.
- Once inside the rectangle movie-clip, select both the fill and the stroke on the stage.
- Then, right-click on top of your selection and choose distribute to layers. Make sure the stroke layer is on top.
- Delete the blank layer, and exit edit mode.
- 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.
- 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