- art363&463 [interactive_media] -

instructor : ryanSmith

Week #5

* Take Attendance *
* Check Homework *
For home work, you were supposed to ....
1) Finish drawing 3 Characters for your Project A
2) Find a soundtrack for your Project A
3) Draw a very rough storyboard

Today: adding sound, and making buttons, 1st AS3.0


FLASH

adding sound
-you can edit sound using iTunes
-make sure all your sounds are saved as mp3 files
What's the difference between Event & Streaming sound?
Free Sound.org
free animal sounds


Instructions for making a button:
1. make a button symbol
2. move it on the stage
*3. GIVE IT AN INSTANCE NAME (in the properties window)
4. make sure you gave your symbol an instance name
5. play with up, over, down, and hit, by inserting Keyframes in the button symbol's timeline

*6. add a layer called actions to your timeline
7. add ActionScript to your timeline:

stop();
or
gotoAndPlay(1);

8. add an Event Listener to the instance of your button:

firstButton.addEventListener(MouseEvent.CLICK, clickHandler);

9. define your function's properties:

function
clickHandler(evt:Object):void{
gotoAndPlay(31);
}

10. Save your file and test your movie


15 min. break
(***PUT COMPUTERS TO SLEEP***)


***Talk about quiz next week***

Review how to make a button.

( play with up, over, down, and hit, by inserting Keyframes in the button symbol's timeline )

-Nest a Movie Clip in a button?
-Add sound to a button symbol?

// Stop all sound:
flash.media.SoundMixer.stopAll();

* SOME WORK TIME *


Home Work :

Project A is due Tuesday, March 5th
(at the beginning of class)

what you will turn in on March 5 :
1) Have your site uploaded to a server before class.
2) You will turn in a folder w/ pockets, with $2 cash, OR a CD w/ your name (use Sharpie)
-Flash .fla, .html & .swf files should all be included
3) Please include storyboard in the folder


***Quiz Questions for Tuesday, March 5th, at the beginning of class

1)
In Adobe Flash's Properties window, if I set the sound to sync as a(n) ____________ sound, then it will play for however many frames I have it my timeline. But, if I set the sound to sync as a(n) ____________ sound, it will play the whole .mp3 sound file from beginning to end, even if it is only on 1 frame of my timeline.

2)
If I gave my button an instance name of MyFirstButton, and I want to click on it, and have it start playing frame 2 in my timeline, then I would use the following code:

_________________.addEventListener(MouseEvent.CLICK, clickyThing);
function ___________________(evt:Object):void{
    ______________(2);
}