Array help?

Hello all,

I have a client that wants a media player which I have set up to have all the mp3’s load externally. The music part is all finished but they want to have an image animate in when changing songs. Basically, every song has a different image and when you’re on the current song and click the “next” button they want the current song to stop, current image to slide to the right to disappear, next song image to slide to the left in place of the last image and then have the new song start. I’ve animated each image to slide to the left but I’m not sure how to set it up with AS.

Here is my code for the arrays on the sound. I threw in the array for the games/images but I’m not sure if that’s correct:

mp3PathArray = new Array ("mp3/01silence.mp3", "mp3/02tick.mp3", "mp3/03love.mp3", "mp3/04animals.mp3", "mp3/05wonder.mp3", "mp3/06john.mp3", "mp3/07mag1.mp3", "mp3/08mag2.mp3", "mp3/09prize.mp3");
mp3NameArray = new Array ("SILENCE FICTION", "TICK. TOCK. TICK.", "LOVE THROUGH TAPEWORM HOOKS", "WHEN ANIMALS ATTACK", "WONDERLAND", "JOHN VS. THE ELEPHANT", "MAGNOLIA ACT I", "MAGNOLIA ACT II", "THE PRIZE");
soundArray = new Array (snd1, snd2, snd3, snd4, snd5, snd6, snd7, snd8, snd9);
gamesArray = new Array (silence_mc, tick_mc, love_mc, animals_mc, wonder_mc, john_mc, mag1_mc, mag2_mc, prize_mc);

Here is the code for the forward button:

forwardButton.onPress = function()
{
	pauseButton._visible = true;
	playButton._visible = false;
	soundArray[soundArray.current].stop();
	soundArray.current++;
	playingText.text = mp3NameArray[soundArray.current];
	
	if(soundArray.current == soundArray.length)
	{
		if(soundArray[0].loadedOnce)
			soundArray[0].start();
		else
			soundArray[0].loadSound(mp3PathArray[0], true);
			soundArray[0].loadedOnce = true;
			soundArray.current = 0;
	}
	else
	{
		if(soundArray[soundArray.current].loadedOnce)
			soundArray[soundArray.current].start();
		else
			soundArray[soundArray.current].loadSound(mp3PathArray[soundArray.current], true);
			soundArray[soundArray.current].loadedOnce = true;
	}
}

Again, the forward button works perfectly to stop the current song and start playing the next one while changing the track title to the correct name. I was trying to apply the same code to my images but I’m not sure how to make the current one move back when a new one is selected. Hopefully this makes sense. Any help would be greatly appreciated.