VCA224 Multimedia 2

Exercise: Moods

Assignment

Using the "Moods" templates, create two simple interactives that switch between different facial expressions, one of which uses "tweens" to create animated changes.

Specifications

Version One: Basic Navigation

  1. Download this zipped file. It contains two Flash files: moods1.fla and moods2.fla.
  2. Open moods1. Note how it is laid out: at frames 1, 5, 10, and 15 are columns of keyframes with different shapes (features of the face). As a result, at frame 1 the expression is neutral; at 5 the face is "happy;" at 10 "sad;" and at 15 "angry."
  3. Make a new layer; call it "buttons."
  4. Create 1-3 buttons.
    1. Draw a shape.
    2. Select the shape then go to Modify > Convert to Symbol. Choose Button Symbol. Call it "button," or if you want to do more than one, "happy_btn."
    3. Inside the button timeline you can specify different "over" and "down" colors/designs.
  5. Put the button next to "Happy" (make sure the button is on the button layer).
  6. Drag another instance of the button out of the library and place it next to "Sad" or create a new button for Sad. Repeat the process for "Angry."
  7. In the "labels/action" layer, label the keyframes "home," "happy," "sad," and "angry," respectively. To label a keyframe, select it in the timeline, then in the Properties window, on the left side, type the label name into the box that says "<Frame Label>."
  8. Click on the first keyframe in the labels/actions layer (the one labeled "home"). Open the Actions window. In the Actions window write:
    stop();

  9. Select the button next to "Happy" (make sure the button is selected, not the frame). In the Actions window, write the following script:
    on (release) {
    gotoAndStop("happy");
    }
  10. Select the "Sad" button. In the Actions window write:
    on (release) {
    gotoAndStop("sad");
    }
  11. Do the same for the "Angry" button (but make sure it's pointing to the "angry" label).
  12. Make a movie and test it. Do all three buttons work?

Version Two: Adding Tweens

Now we're going to add a little "flair" by adding some tweens.

  1. Now open "Moods2." Note the differences. There are still four sections: neutral, happy, sad, and angry. But this time each of the mood sections starts with a set of "neutral" keyframes and ends with the selected expression. This will allow us to animate a change from the neutral face to the expression for each of the buttons pressed.
  2. Label the keyframes at 1, 10, 20 and 30 "home," "happy," "sad," and "angry." These frames mark the beginnings of each mood sequence.
  3. Once again, place a stop(); on the first frame.
  4. Now also add "stops" to frames 19, 29, and 39.
  5. Create a button layer. On it, make one or more buttons and place them by the moods (as we did with "Moods1").
  6. Select the happy button and in the Actions window write the following script:
    on (release) {
    gotoAndPlay("happy");
    }

    Notice the difference—"gotoAndPlay" instead of "gotoAndStop." You'll see why in a second. Add the same action to the other two buttons, changing "happy" to the appropriate labels.
  7. Now it's time to add the "tweens." On the "mouth" layer click somewhere between frames 10 & 19 and choose Shape Tween in the Properties window. Note how the mouth now moves from neutral to smile. Also tween between 20 & 29, and 30 & 39. I think you can see where this is headed. Add tweens between frames 20 & 29 and 30 & 39 on the two "eye" layers. Tween between 30 & 39 on the "head" layer.
  8. Test your movie. Do all three buttons work?
  9. Render a .swf file. Turn-in both .fla and .swf files.

Go Above and Beyond

Some possibilities:

Point Breakdown

10 pts

Went above & beyond and made something special

9 pts

Above and beyond the basics.

8 pts

Did the basics; it works, but it's nothing fancy.

7 pts

Something's not working right.

0-6 pts

Poor showing; mostly incomplete or full of errors.

 

Examples: Joe Milbach | Jessica Frater

Course Outline

Syllabus

Student Resource