JavaScript DHTML/Development/Flash
Play flash sound
<source lang="html4strict">
<html> <head> <title>DynAPI Examples - FlashSound</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <script language="JavaScript" src="./dynapisrc/dynapi.js"></script> <script language="Javascript">
dynapi.library.setPath("./dynapisrc/"); dynapi.library.include("dynapi.api"); dynapi.library.include("dynapi.functions.Image"); dynapi.library.include("dynapi.fx.FlashSound");
</script> <script type="text/javascript" language="JavaScript1.1">
var myimg = dynapi.functions.getImage("./dynapiexamples/images/eicon1_off.gif",32,32,{ border:0, oversrc:"./dynapiexamples/images/eicon1.gif" }); var uisounds; uisounds = new FlashSound(); uisounds.setSWF("./dynapiexamples/images/uisounds2.swf");
</script> <body bgcolor="#FFFFFF">
FlashSound
Move your mouse over the following images to hear a sound
<script>document.write(myimg.getHTML({onmouseover:"uisounds.gotoAndPlay("/F#-E","start")",onmouseout:"uisounds.gotoAndPlay("/F#-E","fadetostop")"}))</script> | <script>document.write(myimg.getHTML({onmouseover:"uisounds.gotoAndPlay("/F-G","start")",onmouseout:"uisounds.gotoAndPlay("/F-G","fadetostop")"}))</script> | <script>document.write(myimg.getHTML({onmouseover:"uisounds.gotoAndPlay("/E-D#","start")",onmouseout:"uisounds.gotoAndPlay("/E-D#","fadetostop")"}))</script> | <script>document.write(myimg.getHTML({onmouseover:"uisounds.gotoAndPlay("/C#-F#","start")",onmouseout:"uisounds.gotoAndPlay("/C#-F#","fadetostop")"}))</script> | <script>document.write(myimg.getHTML({onmouseover:"uisounds.gotoAndPlay("/D-E","start")",onmouseout:"uisounds.gotoAndPlay("/D-E","fadetostop")"}))</script> |
</body> </html>
</source>
<A href="http://www.wbex.ru/Code/JavaScriptDownload/dynapi.zip">dynapi.zip( 791 k)</a>