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

**URL:** <https://forum.kirupa.com/t/get-location-of-swf-local-localconnection-domain-and-then/311993>\
**Category:** Uncategorized\
**Created:** [July 22, 2010, 12:58am UTC](https://forum.kirupa.com/t/get-location-of-swf-local-localconnection-domain-and-then/311993 "2010-07-22T00:58:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaedo](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Shaedo](https://forum.kirupa.com/u/Shaedo)\
**Post date:** [July 22, 2010, 12:58am UTC](https://forum.kirupa.com/t/get-location-of-swf-local-localconnection-domain-and-then/311993/1 "2010-07-22T00:58:44Z")

</div>

I want to get the full path of a swf.

this gets me half way there …

```auto
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

```php

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

```
