Followers

Monday, December 15, 2014

Week 18

You must create an animated story or greeting card in Flash.

The scene or story can be of your choosing. Perhaps you have snow falling, or people ice skating on a frozen pond. Make it come to life! Add details like birds, cars driving by, or random people walking.

Title your file like this
SAVE AS:
yourname-seasoncard-121514.fla (with the correct date at the end)

Include one interactive button that takes you to a new scene. The code is below.

Save your FLA and your SWF files on the myglife.org site using File Uploader Tool, found in the left navigation.

Use a classic tween and a shape tween to animate.

Here is a tutorial on color changing tweens.
http://www.ehow.com/video_4972473_flash-animation-tutorial-color-tweening.html


You can also use frame by frame animation.

Action Script 3

File dimensions: 550x400

The animation should be on your second scene. 
The first scene is to get the user to interact with the button and into the story.

Good luck!

Here is the code to copy and paste into your Actions to make the button take you to the next scene IF YOU CHOOSE TO DO MULTIPLE SCENES. (OPTIONAL) AND CODE FOR SCENE 2.



THIS CODE BELONGS ON SCENE 1 SO YOUR BUTTON WORKS TO TAKE YOU TO SCENE 2.

stop();
 
import flash.events.MouseEvent;
import flash.ui.Mouse;
 
addEventListener(MouseEvent.CLICK, onMouseClick);
 
function onMouseClick(evt:MouseEvent)
{
 if(evt.target.name == "nextButton")
 {
  gotoAndStop(1, "Scene 2");
 }
  
}


You will also need to add one line of script on Scene 2 that says 

play();

No comments:

Post a Comment