View Full Version : Soundmanager2 stop and play

06-20-2009, 01:49 AM
Hi im trying to configure soundmanager2, im finding it a bit confusing to have the results im after, wondering if i coul dget any help here.

This is the script im using:

<script type="text/javascript">
soundManager.url = '/SM/swf/'; // directory where SM2 .SWFs live

// Note that SounndManager will determine and append the appropriate .SWF file to the URL.

// disable debug mode after development/testing..
// soundManager.debugMode = false;

// Option 1: Simple createSound method

soundManager.onload = function() {
// SM2 has loaded - now you can create and play sounds!


I would like to know how to add a pause and resume button to my webpage, i was trying these but they would work.

<a href="javascript: soundManager.stop();"> Stop </a>
<a href="javascript: soundManager.play();"> play </a>

please help, thanks