# Getting information about the URL hosting an SWF

**URL:** <https://forum.kirupa.com/t/getting-information-about-the-url-hosting-an-swf/84285>\
**Category:** flash\
**Created:** [March 26, 2005, 12:01am UTC](https://forum.kirupa.com/t/getting-information-about-the-url-hosting-an-swf/84285 "2005-03-26T00:01:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![freakshow](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@freakshow](https://forum.kirupa.com/u/freakshow)\
**Post date:** [March 26, 2005, 12:01am UTC](https://forum.kirupa.com/t/getting-information-about-the-url-hosting-an-swf/84285/1 "2005-03-26T00:01:18Z")

</div>

Howdy,

Does anyone know of a way to obtain information about the environment that a SWF is served into? Things like the URL of the page that is hosting the SWF?

So say there’s the URL [http://www.somesite.com/flashpage.html](http://www.somesite.com/flashpage.html) which has the movie flashmovie.swf embeded in it … is there a way to get the URL from inside flashmovie.swf and cast it into a string datatype?

I’ve been picking apart the \_global object by recursively un-hiding it and the objects it holds properties, but so far have not come up with anything that could prove useful.

I want to be able to do this for error logging.

Any help is much appreciated …

Chris
