views:

14

answers:

1

I am working with the open source flash player at http://flash-mp3-player.net/ and I am trying to figure out how to limit one sound file at a time. I know this has been done on a number of sites but I am unsure how to approach it.

Scenario: A page has five different instances of the flash player. The user is litening to one song but clicks on another to listen to it.

Goal: The first audio file automatically stops while the second starts playing instead of both playing at the same time.

Do I need to have some sort of javascript handler than interacts with the swf or something?

A: 

You could use Javascript to handle the communication or you could use local connections. There are plenty of examples online.

ChrisCast