# Local Connection - Playing 2 separate swfs in succession

**URL:** <https://forum.kirupa.com/t/local-connection-playing-2-separate-swfs-in-succession/267715>\
**Category:** flash\
**Created:** [August 5, 2008, 1:57am UTC](https://forum.kirupa.com/t/local-connection-playing-2-separate-swfs-in-succession/267715 "2008-08-05T01:57:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dada78](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@dada78](https://forum.kirupa.com/u/dada78)\
**Post date:** [August 5, 2008, 1:57am UTC](https://forum.kirupa.com/t/local-connection-playing-2-separate-swfs-in-succession/267715/1 "2008-08-05T01:57:16Z")

</div>

Hi guys,

I can’t figure out how to make this happen. I have to admit I am not an actionscript guru and especially not familiar with local connection, however would like to understand how the commands would work in order to accomplish the following:

Banner 1: plays animation until it has reached the last frame and stops.  
Banner 2: is displaying a static image until banner 1 has finished and then plays an animation.

Right now I have:  
Banner 1  
// Code in the sending movie  
sendingLC = new LocalConnection();  
sendingLC.send(“lc\_name”, “methodToExecute”, dataItem1, dataItem2)

Banner2  
// Code in the receiving movie  
receivingLC = new LocalConnection();  
receivingLC.methodToExecute = function(param1, param2)  
{  
// Code to be executed  
}  
receivingLC.connect(“lc\_name”);

Thank you!  
D
