Skip to content

Commit

Permalink
Updated tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
Lanny McNie committed Dec 4, 2015
1 parent ea676eb commit 60cc8da
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions tutorials/Basics and Best Practices/sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title></title>
</head>
<body onload="init()">
<script src="http://code.createjs.com/soundjs-0.5.2.min.js"></script>
<script src="http://code.createjs.com/soundjs-0.6.1.min.js"></script>

<script>
function init() {
Expand All @@ -17,7 +17,7 @@
];

createjs.Sound.alternateExtensions = ["mp3"];
createjs.Sound.addEventListener("fileload", handleLoad);
createjs.Sound.on("fileload", handleLoad);
createjs.Sound.registerSounds(sounds, audioPath);
}

Expand Down
2 changes: 1 addition & 1 deletion tutorials/Mobile Safe Approach/sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<body onload="init()">
<h1 id="status">Hello World.</h1>

<script src="http://code.createjs.com/soundjs-0.6.0.min.js"></script>
<script src="http://code.createjs.com/soundjs-0.6.1.min.js"></script>

<script>
var display;
Expand Down
10 changes: 5 additions & 5 deletions tutorials/SoundJS and PreloadJS/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h2>SoundJS Internal Preloading</h2>
</p>

<textarea class="brush: js; highlight:[1]" readonly>
createjs.Sound.addEventListener("fileload", handleFileLoad);
createjs.Sound.on("fileload", handleFileLoad);
function handleFileLoad(event) {
// A sound has been preloaded.
console.log("Preloaded:", event.id, event.src);
Expand All @@ -110,7 +110,7 @@ <h2>SoundJS Internal Preloading</h2>
</p>

<textarea class="brush: js; highlight:[3,4,5,6]" readonly>
createjs.Sound.addEventListener("fileload", handleFileLoad);
createjs.Sound.on("fileload", handleFileLoad);
createjs.Sound.alternateExtensions = ["mp3"];
createjs.Sound.registerSounds(
[{id:"music1", src:"music.mp3"},
Expand Down Expand Up @@ -155,8 +155,8 @@ <h2>Preloading using PreloadJS</h2>

<textarea class="brush: js;" readonly>
var queue = new createjs.LoadQueue();
queue.addEventListener("fileload", handleFileLoad);
queue.addEventListener("complete", handleComplete);
queue.on("fileload", handleFileLoad);
queue.on("complete", handleComplete);

queue.loadFile({id:"myImage", src:"assets/image.jpg"});
// OR
Expand Down Expand Up @@ -186,7 +186,7 @@ <h2>Preloading using PreloadJS</h2>
var queue = new createjs.LoadQueue();
createjs.Sound.alternateExtensions = ["mp3"];
queue.installPlugin(createjs.Sound);
queue.addEventListener("complete", handleComplete);
queue.on("complete", handleComplete);
queue.loadFile({id:"mySound", src:"assets/sound.ogg"});
</textarea>

Expand Down
2 changes: 1 addition & 1 deletion tutorials/SoundJS and PreloadJS/internalPreloading.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>SoundJS demo: Internal Preloading</title>
<link href="../_shared/demo.css" rel="stylesheet" type="text/css">
<script src="http://code.createjs.com/soundjs-0.5.2.min.js"></script>
<script src="http://code.createjs.com/soundjs-0.6.1.min.js"></script>

<script>

Expand Down
4 changes: 2 additions & 2 deletions tutorials/SoundJS and PreloadJS/preloadjs.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<title>SoundJS demo: Using PreloadJS</title>
<link href="../_shared/demo.css" rel="stylesheet" type="text/css">
<script src="http://code.createjs.com/soundjs-0.5.2.min.js"></script>
<script src="http://code.createjs.com/preloadjs-0.4.1.min.js"></script>
<script src="http://code.createjs.com/soundjs-0.6.1.min.js"></script>
<script src="http://code.createjs.com/preloadjs-0.6.1.min.js"></script>

<script>

Expand Down

0 comments on commit 60cc8da

Please sign in to comment.