JavaScript and Flash

Hello all!

Hear is the problem:

When the user clicks on a link that plays a different “sound” I would like it to tell my flash music player (…/flash/player.swf) to stop all sound.

Flash can talk to javascript… so javascript can talk to flash, correct?

Thank-you for anything, it all helps.
ANI