- week #7 -
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)
Review: adding sound
animal-sounds.org
-make sure all your sounds are saved as mp3 files
Adding sound with AS3.0
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(); |
Dowload .fla file:
SoundTest_fall_2013.fla
// sound.play(0, int.MAX_VALUE);
or
// audio2.play(0, 9999);
Get started on Project B