# localConnection() with multiple swf files

**URL:** <https://forum.kirupa.com/t/localconnection-with-multiple-swf-files/236320>\
**Category:** flash\
**Created:** [August 19, 2007, 9:17pm UTC](https://forum.kirupa.com/t/localconnection-with-multiple-swf-files/236320 "2007-08-19T21:17:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingscooty](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@kingscooty](https://forum.kirupa.com/u/kingscooty)\
**Post date:** [August 19, 2007, 9:17pm UTC](https://forum.kirupa.com/t/localconnection-with-multiple-swf-files/236320/1 "2007-08-19T21:17:38Z")

</div>

I’m having trouble getting more than 1 swf to recieve a message from another swf file using localConnection() ☹

I have 2 instances of the **same** swf file loaded into different divs under different div ID’s on a web page. I was then trying to get a **different** swf file, using localConnection to send a true/false command (determined via button rollover) to the other 2 swf instances, which would then simultaneously react to the message sent.

However, at the moment, the first instance of the swf to be loaded into the web page is the only one that reacts the localConnection message being sent.

Is there a way to get both instances of the file to react? I’m rather perplexed…

I appreciate any enlightenment on this matter! 🙂
