Let me preface this...I am a student learning Animate. I have knowledge of Photoshop and Illustrator previous to going to school. (Just want you to know what my limitations might be).
I am making a short "game". I am using scenes. I want to add a music button to each level that plays the music automatically but has a start/stop feature. I was trying to use this code -
/* Click to Play/Stop Sound
Clicking on the symbol instance plays the specified sound.
Clicking on the symbol instance a second time stops the sound.
1. Replace "http://www.helpexamples.com/flash/sound/song1.mp3" below with the desired URL address of your sound file. Keep the quotation marks ("").
//This variable keeps track of whether you want to play or stop the sound
var fl_ToPlay:Boolean = true;
var s:Sound = new Sound(new URLRequest("http://www.helpexamples.com/flash/sound/song1.mp3"));
fl_SC = s.play();
fl_ToPlay = !fl_ToPlay;
I found the song that I want but it was a download from a free site. How do I convert that to a url? Any ideas? Thanks in advance for any help.