I'm using swfobject to embed a flash player (FFMp3) on my page. I also have a link to open the player in a small pop-up window. The thing is that I want the flash player to stop playing when the user clicks the pop-up link.

I've tried using many different methods but none of them worked. I saw object callbacks on the website for FFMp3 and enabled those. I found that when the user clicks the stop button on the player, it sends "stop" as the event and "0" as the variable.

How might I send "stop,0" to the object using javascript?