Skip to content

Commit b4914cb

Browse files
author
Lanny McNie
committed
Updated demos to include core class list.
Signed-off-by: Lanny McNie <[email protected]>
1 parent fc79c96 commit b4914cb

10 files changed

+50
-63
lines changed

examples/Game.html

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,17 @@ <h1>Sorry!</h1>
4141
with the OS and browser if you see this on a device that is not mobile. Thank you.</p>
4242
</div>
4343

44+
<script type="text/javascript" src="./assets/easeljs-NEXT.min.js"></script>
45+
<script type="text/javascript" src="./assets/preloadjs-NEXT.min.js"></script>
4446

45-
<!-- utility libraries required by SoundJS -->
47+
<!-- Note: All SoundJS classes are listed here: -->
4648
<script type="text/javascript" src="../src/createjs/utils/Proxy.js"></script>
4749
<script type="text/javascript" src="../src/createjs/utils/IndexOf.js"></script>
4850
<script type="text/javascript" src="../src/createjs/events/Event.js"></script>
4951
<script type="text/javascript" src="../src/createjs/events/EventDispatcher.js"></script>
50-
51-
<!-- other libraries -->
52-
<script type="text/javascript" src="./assets/easeljs-NEXT.min.js"></script>
53-
<script type="text/javascript" src="./assets/preloadjs-NEXT.min.js"></script>
54-
55-
<!-- SoundJS libraries -->
5652
<script type="text/javascript" src="../src/soundjs/Sound.js"></script>
5753
<script type="text/javascript" src="../src/soundjs/WebAudioPlugin.js"></script>
5854
<script type="text/javascript" src="../src/soundjs/HTMLAudioPlugin.js"></script>
59-
<script type="text/javascript" src="../src/swfobject.js"></script>
60-
<script type="text/javascript" src="../src/soundjs/FlashPlugin.js"></script>
6155

6256
<!-- We also provide hosted minified versions of all CreateJS libraries.
6357
http://code.createjs.com -->

examples/JustPlay.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,18 @@ <h1>Sorry!</h1>
3131
with the OS and browser if you see this on a device that is not mobile. Thank you.</p>
3232
</div>
3333

34-
<!-- utility libraries required by SoundJS -->
34+
<!-- Note: All SoundJS classes are listed here: -->
3535
<script type="text/javascript" src="../src/createjs/utils/Proxy.js"></script>
3636
<script type="text/javascript" src="../src/createjs/utils/IndexOf.js"></script>
37-
<script type="text/javascript" src="../src/createjs/events/Event.js"></script>
38-
<script type="text/javascript" src="../src/createjs/events/EventDispatcher.js"></script>
39-
40-
<!-- SoundJS libraries -->
37+
<script type="text/javascript" src="../src/createjs/events/Event.js"></script>
38+
<script type="text/javascript" src="../src/createjs/events/EventDispatcher.js"></script>
4139
<script type="text/javascript" src="../src/soundjs/Sound.js"></script>
4240
<script type="text/javascript" src="../src/soundjs/WebAudioPlugin.js"></script>
4341
<script type="text/javascript" src="../src/soundjs/HTMLAudioPlugin.js"></script>
4442

43+
<!-- We also provide hosted minified versions of all CreateJS libraries.
44+
http://code.createjs.com -->
45+
4546
<script>
4647
var src; // the audio src we are trying to play
4748
var soundInstance; // the soundInstance returned by Sound when we create or play a src
@@ -60,7 +61,7 @@ <h1>Sorry!</h1>
6061
}
6162

6263
// check if we are on a mobile device, as these currently require us to launch sound inside of a user event
63-
if (createjs.Sound.BrowserDetect.isIOS || createjs.Sound.BrowserDetect.isAndroid) { // || createjs.Sound.BrowserDetect.isBlackberry OJR blackberry has not been tested yet
64+
if (createjs.Sound.BrowserDetect.isIOS || createjs.Sound.BrowserDetect.isAndroid) { // || createjs.Sound.BrowserDetect.isBlackberry // OJR blackberry has not been tested yet
6465
document.getElementById("mobile").style.display = "block";
6566
document.getElementById("content").style.display = "none";
6667
return;

examples/MediaPlayer.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,14 @@ <h1>Sorry!</h1>
121121
with the device and browser you are using. Thank you.</p>
122122
</div>
123123

124-
<!-- utility libraries required by SoundJS -->
124+
<!-- Note: All SoundJS classes are listed here: -->
125125
<script type="text/javascript" src="../src/createjs/utils/Proxy.js"></script>
126126
<script type="text/javascript" src="../src/createjs/utils/IndexOf.js"></script>
127127
<script type="text/javascript" src="../src/createjs/events/Event.js"></script>
128128
<script type="text/javascript" src="../src/createjs/events/EventDispatcher.js"></script>
129-
130-
<!-- SoundJS libraries -->
131129
<script type="text/javascript" src="../src/soundjs/Sound.js"></script>
132130
<script type="text/javascript" src="../src/soundjs/WebAudioPlugin.js"></script>
133131
<script type="text/javascript" src="../src/soundjs/HTMLAudioPlugin.js"></script>
134-
<script type="text/javascript" src="../src/swfobject.js"></script>
135-
<script type="text/javascript" src="../src/soundjs/FlashPlugin.js"></script>
136132

137133
<!-- We also provide hosted minified versions of all CreateJS libraries.
138134
http://code.createjs.com -->

examples/MobileSafe.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,18 @@ <h1>Sorry!</h1>
2424
with the device and browser you are using. Thank you.</p>
2525
</div>
2626

27-
<!-- utility libraries required by SoundJS -->
27+
<!-- Note: All SoundJS classes are listed here: -->
2828
<script type="text/javascript" src="../src/createjs/utils/Proxy.js"></script>
2929
<script type="text/javascript" src="../src/createjs/utils/IndexOf.js"></script>
3030
<script type="text/javascript" src="../src/createjs/events/Event.js"></script>
3131
<script type="text/javascript" src="../src/createjs/events/EventDispatcher.js"></script>
32-
33-
<!-- SoundJS libraries -->
3432
<script type="text/javascript" src="../src/soundjs/Sound.js"></script>
3533
<script type="text/javascript" src="../src/soundjs/WebAudioPlugin.js"></script>
3634
<script type="text/javascript" src="../src/soundjs/HTMLAudioPlugin.js"></script>
3735

36+
<!-- We also provide hosted minified versions of all CreateJS libraries.
37+
http://code.createjs.com -->
38+
3839
<script>
3940
var displayMessage; // the HTML element we use to display messages to the user
4041

examples/MusicVisualizer.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,19 @@ <h1>Sorry!</h1>
2525
<canvas id="testCanvas" width="960" height="400"></canvas>
2626
</div>
2727

28-
<!-- utility libraries required by SoundJS -->
28+
<script type="text/javascript" src="assets/easeljs-NEXT.min.js"></script>
29+
30+
<!-- Note: All SoundJS classes are listed here: -->
2931
<script type="text/javascript" src="../src/createjs/utils/Proxy.js"></script>
3032
<script type="text/javascript" src="../src/createjs/utils/IndexOf.js"></script>
3133
<script type="text/javascript" src="../src/createjs/events/Event.js"></script>
3234
<script type="text/javascript" src="../src/createjs/events/EventDispatcher.js"></script>
33-
34-
<!-- other libraries-->
35-
<script type="text/javascript" src="assets/easeljs-NEXT.min.js"></script>
36-
37-
<!-- SoundJS libraries -->
3835
<script type="text/javascript" src="../src/soundjs/Sound.js"></script>
3936
<script type="text/javascript" src="../src/soundjs/WebAudioPlugin.js"></script>
37+
<script type="text/javascript" src="../src/soundjs/HTMLAudioPlugin.js"></script>
38+
39+
<!-- We also provide hosted minified versions of all CreateJS libraries.
40+
http://code.createjs.com -->
4041

4142
<script>
4243
// global constants

examples/PreloadAndPlay.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,18 @@ <h1>Sorry!</h1>
4646
with the OS and browser if you see this on a device that is not mobile. Thank you.</p>
4747
</div>
4848

49-
<!-- utility libraries required by SoundJS -->
49+
<script type="text/javascript" src="./assets/preloadjs-NEXT.min.js"></script>
50+
51+
<!-- Note: All SoundJS classes are listed here: -->
5052
<script type="text/javascript" src="../src/createjs/utils/Proxy.js"></script>
5153
<script type="text/javascript" src="../src/createjs/utils/IndexOf.js"></script>
5254
<script type="text/javascript" src="../src/createjs/events/Event.js"></script>
5355
<script type="text/javascript" src="../src/createjs/events/EventDispatcher.js"></script>
54-
55-
<!-- other libraries -->
56-
<script type="text/javascript" src="./assets/preloadjs-NEXT.min.js"></script>
57-
58-
<!-- SoundJS libraries -->
5956
<script type="text/javascript" src="../src/soundjs/Sound.js"></script>
6057
<script type="text/javascript" src="../src/soundjs/WebAudioPlugin.js"></script>
6158
<script type="text/javascript" src="../src/soundjs/HTMLAudioPlugin.js"></script>
59+
60+
<!-- Note: FlashPlugin is only needed to support older browsers -->
6261
<script type="text/javascript" src="../src/swfobject.js"></script>
6362
<script type="text/javascript" src="../src/soundjs/FlashPlugin.js"></script>
6463

examples/SoundExplosion.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,20 @@ <h1>Sorry!</h1>
2626
<canvas id="testCanvas" width="960" height="400"></canvas>
2727
</div>
2828

29-
<!-- utility libraries required by SoundJS -->
29+
<script type="text/javascript" src="assets/easeljs-NEXT.min.js"></script>
30+
<script type="text/javascript" src="assets/preloadjs-NEXT.min.js"></script>
31+
32+
<!-- Note: All SoundJS classes are listed here: -->
3033
<script type="text/javascript" src="../src/createjs/utils/Proxy.js"></script>
3134
<script type="text/javascript" src="../src/createjs/utils/IndexOf.js"></script>
3235
<script type="text/javascript" src="../src/createjs/events/Event.js"></script>
3336
<script type="text/javascript" src="../src/createjs/events/EventDispatcher.js"></script>
34-
35-
<!-- other libraries -->
36-
<script type="text/javascript" src="assets/easeljs-NEXT.min.js"></script>
37-
<script type="text/javascript" src="assets/preloadjs-NEXT.min.js"></script>
38-
39-
<!-- SoundJS libraries -->
4037
<script type="text/javascript" src="../src/soundjs/Sound.js"></script>
4138
<script type="text/javascript" src="../src/soundjs/WebAudioPlugin.js"></script>
4239
<script type="text/javascript" src="../src/soundjs/HTMLAudioPlugin.js"></script>
4340

4441
<!-- We also provide hosted minified versions of all CreateJS libraries.
45-
http://code.createjs.com -->
42+
http://code.createjs.com -->
4643

4744
<script>
4845
var canvas, stage; // the canvas and stage we draw to

examples/SoundGrid.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,15 @@ <h1>Sorry!</h1>
6969
with the device and browser you are using. Thank you.</p>
7070
</div>
7171

72-
<!-- utility libraries required by SoundJS -->
72+
73+
<!-- Note: All SoundJS classes are listed here: -->
7374
<script type="text/javascript" src="../src/createjs/utils/Proxy.js"></script>
7475
<script type="text/javascript" src="../src/createjs/utils/IndexOf.js"></script>
7576
<script type="text/javascript" src="../src/createjs/events/Event.js"></script>
7677
<script type="text/javascript" src="../src/createjs/events/EventDispatcher.js"></script>
77-
78-
<!-- SoundJS libraries -->
7978
<script type="text/javascript" src="../src/soundjs/Sound.js"></script>
8079
<script type="text/javascript" src="../src/soundjs/WebAudioPlugin.js"></script>
8180
<script type="text/javascript" src="../src/soundjs/HTMLAudioPlugin.js"></script>
82-
<script type="text/javascript" src="../src/swfobject.js"></script>
83-
<script type="text/javascript" src="../src/soundjs/FlashPlugin.js"></script>
8481

8582
<!-- We also provide hosted minified versions of all CreateJS libraries.
8683
http://code.createjs.com -->

examples/SoundTween.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,24 @@ <h1>Sorry!</h1>
4242
with the OS and browser if you see this on a device that is not mobile. Thank you.</p>
4343
</div>
4444

45-
<!-- utility libraries required by SoundJS -->
45+
<script type="text/javascript" src="./assets/easeljs-NEXT.min.js"></script> <!-- note tweenjs needs easeljs ticker -->
46+
<script type="text/javascript" src="./assets/tweenjs-NEXT.min.js"></script>
47+
48+
<!-- Note: All SoundJS classes are listed here: -->
4649
<script type="text/javascript" src="../src/createjs/utils/Proxy.js"></script>
4750
<script type="text/javascript" src="../src/createjs/utils/IndexOf.js"></script>
4851
<script type="text/javascript" src="../src/createjs/events/Event.js"></script>
4952
<script type="text/javascript" src="../src/createjs/events/EventDispatcher.js"></script>
50-
51-
<!-- other libraries -->
52-
<script type="text/javascript" src="./assets/easeljs-NEXT.min.js"></script> <!-- note tweenjs needs easeljs ticker -->
53-
<script type="text/javascript" src="./assets/tweenjs-NEXT.min.js"></script>
54-
55-
<!-- SoundJS libraries -->
5653
<script type="text/javascript" src="../src/soundjs/Sound.js"></script>
5754
<script type="text/javascript" src="../src/soundjs/WebAudioPlugin.js"></script>
5855
<script type="text/javascript" src="../src/soundjs/HTMLAudioPlugin.js"></script>
56+
57+
<!-- Note: FlashPlugin is only needed to support older browsers -->
5958
<script type="text/javascript" src="../src/swfobject.js"></script>
60-
<script type="text/javascript" src="../src/soundjs/FlashPlugin.js"></script>
59+
<script type="text/javascript" src="../src/soundjs/FlashPlugin.js"></script>
60+
61+
<!-- We also provide hosted minified versions of all CreateJS libraries.
62+
http://code.createjs.com -->
6163

6264
<script>
6365
// Read the URL Params. We need to do this to determine the plugin mode.

examples/TestSuite.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,26 +147,25 @@ <h1>Sorry!</h1>
147147
with the device and browser you are using. Thank you.</p>
148148
</div>
149149

150-
<!-- utility libraries required by SoundJS -->
150+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
151+
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
152+
153+
<!-- Note: All SoundJS classes are listed here: -->
151154
<script type="text/javascript" src="../src/createjs/utils/Proxy.js"></script>
152155
<script type="text/javascript" src="../src/createjs/utils/IndexOf.js"></script>
153156
<script type="text/javascript" src="../src/createjs/events/Event.js"></script>
154157
<script type="text/javascript" src="../src/createjs/events/EventDispatcher.js"></script>
155-
156-
<!-- SoundJS libraries -->
157158
<script type="text/javascript" src="../src/soundjs/Sound.js"></script>
158159
<script type="text/javascript" src="../src/soundjs/WebAudioPlugin.js"></script>
159160
<script type="text/javascript" src="../src/soundjs/HTMLAudioPlugin.js"></script>
161+
162+
<!-- Note: FlashPlugin is only needed to support older browsers -->
160163
<script type="text/javascript" src="../src/swfobject.js"></script>
161164
<script type="text/javascript" src="../src/soundjs/FlashPlugin.js"></script>
162165

163166
<!-- We also provide hosted minified versions of all CreateJS libraries.
164167
http://code.createjs.com -->
165168

166-
<!-- other libraries -->
167-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
168-
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
169-
170169
<script>
171170
// Read the URL Params. We need to do this to determine the plugin mode.
172171
var params = {};

0 commit comments

Comments
 (0)