Javascript control example:
Let’s say you want to have a player on the page, but have the option of loading the player in its own window, and you want the in-page player to stop when the popup player loads. It’s easy. Let’s say you have the audio player loading with an id of “audioplayer_1”. In the function that launches your popup window, you include the following code:
var myFlashMovie = document.getElementById(“audioplayer_1”);
myFlashMovie.close();
That will associate the myFlashMovie var with the object or embed that has the id of audioplayer_1, and do that player’s external close method, which will stop playback.