ryanSmithART.com/courses/363/2014


- week #5 -

ryansmithart.com/courses/363/2014


DUE TODAY:

"Project A"

Review - uploading

YOU SHOULD HAVE UPLOADED:

3 animations.
* Publish all 3 as .swf files embeded into .htlm pages
* Add links to the "index.html" page that you previously made

Have your site uploaded to a server before class.

* html & swf files
(you don't need to upload .fla files)



MORE FLASH:

Review:
adding sound


-make sure all your sounds are saved as mp3 files
What's the difference between Event & Streaming sound?



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

Adding sound with AS3.0

animal-sounds.org

Sound: //Loading audio:
var audio:Sound = new Sound();
var req:URLRequest = new URLRequest("Song.mp3");
audio.load(req);
audio.play();

// If you want it to loop, then change the last line to:
audio.play(0, int.MAX_VALUE);

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


Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

Dowload .fla file:
SoundTest_fall_2013.fla


// sound.play(0, int.MAX_VALUE);
or
// audio2.play(0, 9999);

 



homework this week:

Week #5 (Oct. 6)
Project A was due this week


NOTE :
If you improve/finish your projects *this week* your grade will go up.
If you don't improve your 1st project, your grade will go down


what you will turn in on the due date:

1) Have your site uploaded to a server before class.
* html & swf files
(you don't need to upload .fla files)

2) I will collect:

- Flash .fla file
- .html file
- .swf file
* And, your storyboard