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

stop sound playback on close of symbol

$
0
0

I am trying to stop a sound on a close button.

I can get .pause to work - but .stop does'nt work at all.

( i want it so if somebody closed a symbol and then reopens it - it will start from the beginning.

 

This is the code i am using on my close button:

 

 

var audio1 = sym.getVariable("audio1");

audio1.stop();

 

sym.getSymbolElement().hide();


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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