# Two separate LocalConnections?

**URL:** <https://forum.kirupa.com/t/two-separate-localconnections/287485>\
**Category:** flash\
**Created:** [May 1, 2009, 9:08pm UTC](https://forum.kirupa.com/t/two-separate-localconnections/287485 "2009-05-01T21:08:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![juniorspecial](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/juniorspecial/32/2610_2.png) [@juniorspecial](https://forum.kirupa.com/u/juniorspecial)\
**Post date:** [May 1, 2009, 9:08pm UTC](https://forum.kirupa.com/t/two-separate-localconnections/287485/1 "2009-05-01T21:08:28Z")

</div>

//I’ve got this working

var sending\_lc:LocalConnection = new LocalConnection();

this.mcLeftBox.onRollOver = function() {  
sending\_lc.send(“lc\_name”,“methodToExecute”);  
};

//but when I do this, this part doesn’t work  
this.mcLeftBox.onRollOut = function() {  
sending\_lc.send(“sendingBannerStart”,“methodBannerStart”);

};

Do I have to open a separate LocalConnection for each different command I want to send to the same swf?

If not, why won’t this work?
