April 3, 2001 - The FlashSound JavaScript API
April 3, 2001 The FlashSound JavaScript API Tips: April 2001
Yehuda Shiran, Ph.D.
|
The FJA is implemented in flashsound.js. Right-click this link and save the script to your hard drive. In any usage of FJA, you need to source this JavaScript file in the HEAD
section of your page:
<HEAD>
<SCRIPT SRC="flashsound.js"></SCRIPT>
</HEAD>
You also need to create a new sound object that will provide you with all FJA's properties and methods. The constructor function is called FlashSound()
. Here is the modified HEAD
section:
<HEAD>
<SCRIPT SRC="flashsound.js"></SCRIPT>
<SCRIPT>
var mySoundObj = new FlashSound();
</SCRIPT>
</HEAD>