Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. var root = this;
  2.  
  3. createjs.Sound.registerSound("sounds/Party_Blowers.wav", "Party_Blowers");
  4. var bgSound;
  5.  
  6. this.stopButton.on("click", function(e) {
  7. root.bgSound.stop();
  8. });
  9.  
  10. I later set the bgSound inside of another function to get around recent browser autoplay problems, but I'm not sure if it was necessary
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement