Control Flash Sounds With JavaScript: SoundManager

SoundManager is a Javascript Sound API which  effectively maps most of the native sound capabilities of Flash 8 to Javascript.

It enables you to control sound in a cross-browser/platform environment, using a language you already know.

Sound Manager

A sample SoundManager code would be:

soundManager.createSound('myNewSound','/path/to/some.mp3');
soundManager.play('myNewSound');
soundManager.setVolume('myNewSound',50);

You see that it is really easy. This JavaScript Flash Sound API has other powerful controls like:

  • stream
  • autoplay
  • onid3 – for ID3 tag displaying
  • whileplaying
  • and more..

Using SoundManager, you can easily create sound based web applications or more interactive background sounds for non-Flash websites.

  • Thanks for the tutorial, the JS is nice and veeeeery similar to MooSound; The sound interface plugin for MooTools.

    Make sure to check it out as it has playlist feature, flash UI and other

    PS> Not mine, just sharing the tooltip.

  • Jakub Chodorowicz

    I havent been aware that you could do this kindo stuff with Javascript – I’d have used in my last project to create a simple music player, instead I had to use flash which I really dont like

    Thanks!

Search