Sound experiment
by karolinka
HTML
<html>
<head>
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
<script>
var soundID = "Thunder";
function loadSound () {
createjs.Sound.registerSound("assets/thunder.ogg", soundID);
}
function playSound () {
createjs.Sound.play(soundID);
}
</script>
</head>
<body onload="loadSound();">
<button onclick="playSound();" class="playSound">Play Sound</button>
</body>
</html>