Getting information about the URL hosting an SWF

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