I want to embed multiple copies of the same SWF in a page, and use local connection to pass a variable to all of those SWF's. I can get my local connection to work, but it only affects the first encountered SWF on the page, and the others seem to ignore the local connection.

Here's a link to an example:

http://www.cowfly.com/misc/sharedObjectTest.html

Here's a link to the FLA I'm using:

http://www.cowfly.com/misc/testLocalConnection.zip

In the movie, I have a button and a dynamic text field. If my test worked as I wanted, I would be able to push the button and the text field in all of the SWF's on the page would read "It worked". However, only one of them works.

How can I get all of the SWF's to recognize the localConnection?

What I eventually want to do is to have multiple audio players embedded in a page and tell them all to stop if any one starts, but first I have to figure this out. I've previously used the ExternalInterface API for this, but in this case I need localConnection.

Also, here's the code from frame one for anyone who doesn't want to download the FLA:

//------------------------------------------------------------------------------
listeningLC = new LocalConnection();

listeningLC.toPlayer = function(playControl) {

if (playControl == 1) {
playControl = 0;
testText = "It worked"
}
};
listeningLC.connect("lc_outgoing");

//
testButton.onPress = function() {
talkingLC = new LocalConnection();
playControl = 1;

talkingLC.send("lc_outgoing", "toPlayer", playControl);
//
}