Hi there, I am pretty new to Flash so bear with me! Any help will be greatly appreciated.
Please go here to see what I’m trying to do: http://www.danpearce.me. This is a little webpage I'm building as I learn more and more flash. I am at a point where I need help linking .mp3 files to the buttons on the "Dan's Top Songs Playlist".
If you like, you can download my flash file here: http://www.danpearce.me/fbar.zip.
I am working with ActionScript 3.0.
The buttons in the Media Player are all instances of the same button. How do I tie each button to a different .mp3 song to play when clicked (and stop when another song is clicked or the pause button is clicked)? Because of the size of song files, I'd like to stream it.
Also, is there any way to use the “repeat” symbol to just play all the songs in order and the “shuffle” symbol to play them in random order?
Sorry, I’ve searched the internet high and low and can’t seem to figure out how to do this. I’m sure I’m just typing in the wrong things.
Okay, I figured it out myself, so thought I'd post the answer to my original question...
For the first song/button, this was my ActionScript (3.0):
var my_sound:SoundId = new SoundId();
var my_channel:SoundChannel = new SoundChannel();
my_channel = my_sound.play();
//END OF SONG
Then, to make the second button link, here was my code for the next one:
var my_sound_rs:SoundId2 = new SoundId2();
my_channel = my_sound_rs.play();
//END OF SONG
Note the red shows what I changed from one section to the next. Hope this helps anybody else trying to do this.