Okay, I'm working on a school project. I basically have a character gallery where when I click on a character thumbnail, it will pull up their picture and information.
I'm trying to set it up so that when I click on a character thumbnail, that character has its own music playing as well.
The problem is, when I click on a second character, I can't get the first character's music to stop playing.
So for the character2 thumbnail, I open up its actions panel and paste this code in:
var mySymbolObject = sym.getSymbol("Character1Music");
mySymbolObject.stop();
var mySymbolObject2 = sym.getSymbol("Character2Music");
mySymbolObject2.play();
I do this because I want the music for character1 to stop.
But when I click on the thumbnail for character2, while the music for character2 starts, the music for character1 doesn't stop!