Help with actionscript n00b

Hey everyone, I need some help with a music control menu… I have this actionscript attached to a button:


on(press) {
// Load Sound
	if (MissYouloaded != true) {
		MissYouloaded = true;
		MissYoupreloadNow=1;
		MissYou.loadSound("../music/MissYou.mp3", false);
	}
}

// Return Message Saying how much is left
on(release) {
	MissYouBytesTotal = _root.MissYou.getBytesTotal(); 
	MissYouBytesLoaded = _root.MissYou.getBytesLoaded();
	MissYouLoading = Math.round((MissYouBytesLoaded / MissYouBytesTotal) * 100);

	if (MissYouLoading < 100) {
		_root.percentLoadedText="Not Ready " + MissYouLoading + "%";
	}

// Show Currently Playing and Play Music
	else if (MissYouLoading==100 and MissYoupreloadNow==1) {
		stopAllSounds();
		MissYou.start(0,999);
		_root.percentLoadedText="Now Playing: Miss You";
	}
}

on Press, it loads the mp3 from an external source, then on release it checks to see if the song is loaded completely or not. If it isn’t, then it tells a dynamic text box to display “Not Ready: XX%”. If it is, it tells the same text box to display “Now Playing: Miss You” as well as play the song. I’m using this script for 5 other songs in the same movie, and it works fine, but I have some questions:

  1. How would I make it so the text box updates automatically with the percent loaded of the last song clicked? For example, if I were to click button 1, the text box would display the loading status of button 1’s song and update it, but if I clicked button 2, the text box would change and display the loading status of button 2’s song (and update that as well)?

  2. After the song is loaded, it doesn’t automatically start playing, how would I accomplish this?

  3. I need some help translating each of the above (onpress and release) to functions. I’ve been able to get a max of 2 values, such as the song’s external URL and preloading variable, but any more and the functions stops working.

Any kind of help would be great.

*changed subject name…