How to find domain name

Hi,

Once a swf is loaded on a server,can any variable inside can tell me the domain name and the directory in which it is present.

Thanks
Sivanathan

erm look at the forums, someone posted this code…

he couldn’t get it to work, but he posted it lol