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

Key up Audio Stop

$
0
0

I'm making an interactive piano tutorial, and I have a strings scale attached to the key down of several keys. Here is an example of one key down;

 

if (e.which == 65) {  //A

          var getShot = sym.getSymbol("soundtestA").getSymbol("Asound");

          getShot.play("A");

}

 

It works fine, but upon lift it keeps playing through - making the notes slow and delayed.

 

I'm not too code savy. How can I link the key up to either pause or stop the sound bite?


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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