Get location of swf local -LocalConnection . domain and then ...?

I want to get the full path of a swf.

this gets me half way there …

var my_lc:LocalConnection = new LocalConnection();
var domainName:String = my_lc.domain;

The reason is that I have two swfs and I want to open one from the other using navigateToURL. The swfs always have the same relationship to each other but they might be placed anywhere on a persons server.

At the moment I can achieve this by adding a php file that gets the domain name and the directory structure they are in but I was hoping that there would be a pure AS3 solution

for the record the PHP is


$this_loc = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];