April 8, 2001 - Kungfuing Your Page
April 8, 2001 Kungfuing Your Page Tips: April 2001
Yehuda Shiran, Ph.D.
|
- Make sure you have the Flash player. 91% of the surfing population already has it. Download.
- Include
flashsound.js
in the HEAD
section.
HEAD
section.
BODY
section.
TGotoAndPlay()
method.
Here is an example that shows the sounds of kung fu martial art:
Here is the source code for the first two links:
<HTML>
<HEAD>
<SCRIPT SRC="flashsound.js"></SCRIPT>
<SCRIPT>
var mySoundObj = new FlashSound();
</SCRIPT>
</HEAD>
<BODY>
<P><A HREF="javascript://" onclick="mySoundObj.TGotoAndPlay('/b1', 'start')">Play the b1 sound</A>
<P><A HREF="javascript://" onclick="mySoundObj.TGotoAndPlay('/k1', 'start')">Play the k1 sound</A>
<SCRIPT>
mySoundObj.embedSWF("hyperkungfu_32.swf");
</SCRIPT>
</BODY>
</HTML>
Here are links you can use to download flashsound.js
and hyperkungfu_32.swf
: