Connection between two urls

I have two swf’s both on a seperate html page etc but both in the same domain.
What happens is that when a link is click on the first one it opens up a pop up html page and within that page the second flash sf plays. This is no problem, as I am using:

on (release) {
var jscommand:String = "window.open('http://www.domain.com/folder/folder/secondpage.html','pl','height=220,width=555,toolbar=no,scrollbars=no');"; 
getURL("javascript:" + jscommand + " void(0);");
 
}

This has not been a problem its just now, i need to talk to the second one, basically i need to pass say a simple variable to the second one so it knows which link i pressed.

So how can i talk between the two flash swf’s in seperate html pages???

I have heard of localConnection and have looked into this but can get it to work if they are just swf’s and on my desktop but not in html pages etc

many thanks Si