Skip to content

Commit 60cc8da

Browse files
author
Lanny McNie
committed
Updated tutorials
1 parent ea676eb commit 60cc8da

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

tutorials/Basics and Best Practices/sample.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title></title>
55
</head>
66
<body onload="init()">
7-
<script src="http://code.createjs.com/soundjs-0.5.2.min.js"></script>
7+
<script src="http://code.createjs.com/soundjs-0.6.1.min.js"></script>
88

99
<script>
1010
function init() {
@@ -17,7 +17,7 @@
1717
];
1818

1919
createjs.Sound.alternateExtensions = ["mp3"];
20-
createjs.Sound.addEventListener("fileload", handleLoad);
20+
createjs.Sound.on("fileload", handleLoad);
2121
createjs.Sound.registerSounds(sounds, audioPath);
2222
}
2323

tutorials/Mobile Safe Approach/sample.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<body onload="init()">
88
<h1 id="status">Hello World.</h1>
99

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

1212
<script>
1313
var display;

tutorials/SoundJS and PreloadJS/index.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ <h2>SoundJS Internal Preloading</h2>
8686
</p>
8787

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

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

156156
<textarea class="brush: js;" readonly>
157157
var queue = new createjs.LoadQueue();
158-
queue.addEventListener("fileload", handleFileLoad);
159-
queue.addEventListener("complete", handleComplete);
158+
queue.on("fileload", handleFileLoad);
159+
queue.on("complete", handleComplete);
160160

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

tutorials/SoundJS and PreloadJS/internalPreloading.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>SoundJS demo: Internal Preloading</title>
55
<link href="../_shared/demo.css" rel="stylesheet" type="text/css">
6-
<script src="http://code.createjs.com/soundjs-0.5.2.min.js"></script>
6+
<script src="http://code.createjs.com/soundjs-0.6.1.min.js"></script>
77

88
<script>
99

tutorials/SoundJS and PreloadJS/preloadjs.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
<title>SoundJS demo: Using PreloadJS</title>
55
<link href="../_shared/demo.css" rel="stylesheet" type="text/css">
6-
<script src="http://code.createjs.com/soundjs-0.5.2.min.js"></script>
7-
<script src="http://code.createjs.com/preloadjs-0.4.1.min.js"></script>
6+
<script src="http://code.createjs.com/soundjs-0.6.1.min.js"></script>
7+
<script src="http://code.createjs.com/preloadjs-0.6.1.min.js"></script>
88

99
<script>
1010

0 commit comments

Comments
 (0)