# Local Connection help

**URL:** <https://forum.kirupa.com/t/local-connection-help/40148>\
**Category:** flash\
**Created:** [January 15, 2004, 4:59am UTC](https://forum.kirupa.com/t/local-connection-help/40148 "2004-01-15T04:59:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scooby4ny](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@scooby4ny](https://forum.kirupa.com/u/scooby4ny)\
**Post date:** [January 15, 2004, 4:59am UTC](https://forum.kirupa.com/t/local-connection-help/40148/1 "2004-01-15T04:59:56Z")

</div>

Hi I am trying to work with Local Conection here and having major issues…

basically I have 2 flash files…

TOP-menu with 2 buttons(content and content2)  
in html table on top  
BOTTOM-seperate flash file with content/welcome screen…  
Now I am trying to load when you click on one of these buttons the .swf files (content and content2) in the bottom part.  
I got it all figured out but IT only loads the content2 because it is the last one in the code…

Here is the code for the 2buttons:

function triggerContent() {  
my\_send = new LocalConnection();  
my\_send.send(“incoming”, “Content”);  
delete my\_lc;  
}

\_root.bluebutton.onPress = function() {  
triggerContent();  
};

function triggerContent2() {  
my\_send = new LocalConnection();  
my\_send.send(“incoming”, “Content2”);  
delete my\_lc;  
}

\_root.bluebutton2.onPress = function() {  
triggerContent2();  
};

and here is code for the MAIN content window

my\_get = new LocalConnection();  
my\_get.Content = function() {  
loadMovieNum(“content.swf”, 1);  
};  
my\_get.connect(“incoming”);

my\_get = new LocalConnection();  
my\_get.Content2 = function() {  
loadMovieNum(“content2.swf”, 1);  
};  
my\_get.connect(“incoming”);

I know its pretty complicated but if you know Local Connection please help me out… Any help appreciated

thanks

Danny
