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

kill audio when another plays

$
0
0

Hi!


How do I kill audio in a symbol when another symbol starts playing?

 

 

I have a very simple setup with a series of symbols on my timeline.

 

When you click one symbol it hides itself and shows the next symbol.

 

I have audio for each symbol and cannot get it to stop when the next symbol / audio starts!


i made a click action for each symbol - (there is def1, def2, def3, def4, def5)

 

for example, on "def1", this is the click action:

 

 

sym.$("def1").hide();

sym.$("def1").stop(); //me trying to stop the sound completely

sym.$("def2").show();

 

var mySymbolObject = sym.getSymbol("def2");

mySymbolObject.play();

 

 

Everything is perfect except the sound from def1 still plays when def2 starts!

 

 

Help would be great!

 

ps (I can post files if needed. I know I can do an array, too, I just don't really know how...)


Viewing all articles
Browse latest Browse all 9897

Trending Articles