Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

I can't target a playing symbol to get it to stop.

$
0
0

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!


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>