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?
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.