# LocalConnection PROBLEM!

**URL:** https://forum.kirupa.com/t/localconnection-problem/276655
**Category:** Uncategorized
**Created:** [December 2, 2008, 11:11am UTC](https://forum.kirupa.com/t/localconnection-problem/276655 "2008-12-02T11:11:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bogdanmin](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@bogdanmin](https://forum.kirupa.com/u/bogdanmin)
#### Post date: [December 2, 2008, 11:11am UTC](https://forum.kirupa.com/t/localconnection-problem/276655/1 "2008-12-02T11:11:29Z")

</div>

I have 2 swfs that comunicate with LocalConnection.

It works fine when I have open that tab but if I’m in a different tab and the localConnection it’s working it throws me an “error”.

Any ideas?

```auto
function callPlaylist()
    {        
        var randomString:String = _root.random_for_this_page;        
        _root.debugger.text += " intra2 " + randomString;
        //Sending        
        sending_lc = new LocalConnection();        
        sending_lc.parent = this;
        sending_lc.onStatus = function(infoObject:Object) {
            switch (infoObject.level) {
                case 'status' :
                    _root.debugger.text += "LocalConnection connected successfully.";
                        break;
                case 'error' :
                    _root.debugger.text += "F: " + this.parent.callPlaylist;
                    this.parent.callPlaylist();
                    _root.debugger.text += "LocalConnection encountered an send error.";
                    break;
            }
        };
        try{
            sending_lc.send(randomString, "recievePlaylist", "amTerminat");
        }
        catch(e){
            _root.debugger.text += "error";
        }
        //_root.debugger.text += randomString;
    }

```

This is the send code where i recive the error.
