"Project A" is due
- Upload your project (if you haven't already)
- Add a link from your index.html page to a project_a.html page
We will look at your projects today in class
Look at source: vineyardesigns.com/tutorials
my_btn.addEventListener(MouseEvent.MOUSE_DOWN, myHandler);
function myHandler(evt:Object):void {
navigateToURL(new URLRequest("http://www.adobe.com/devnet/flash/"), "_self");
}
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);