Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var root = this;
- createjs.Sound.registerSound("sounds/Party_Blowers.wav", "Party_Blowers");
- var bgSound;
- this.stopButton.on("click", function(e) {
- root.bgSound.stop();
- });
- 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