# LocalConnection code not working-help please?

**URL:** <https://forum.kirupa.com/t/localconnection-code-not-working-help-please/77921>\
**Category:** flash\
**Created:** [January 31, 2005, 7:18pm UTC](https://forum.kirupa.com/t/localconnection-code-not-working-help-please/77921 "2005-01-31T19:18:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![threeandcats](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@threeandcats](https://forum.kirupa.com/u/threeandcats)\
**Post date:** [January 31, 2005, 7:18pm UTC](https://forum.kirupa.com/t/localconnection-code-not-working-help-please/77921/1 "2005-01-31T19:18:21Z")

</div>

I’m trying to get a button in swf A on one web page to open another web page containing swf B and have swf B start on a particular frame. I’m opening the new page fine, but swf B is starting at the beginning instead of on desired frame “peleven”.

I’ve read all I can find on LocalConnection and thought I’d figured it out–evidently not! Help please? Code is below.

//On button in sender swf A:

on(release) {getURL(“polypstestvar.htm”, “\_blank”);

\_root.sender.send(“FOBT”, “playhere”);}

//on frame where button appears (but in a different layer):

sender = new LocalConnection();

//on first frame of receiving swf B:

receiver = new LocalConnection();

receiver.connect(“FOBT”);

receiver.playhere = function() {  
gotoAndPlay(“peleven”);}
