Finding the domain name where the swf is being served
There are fimes when I would need to verify the domain name where the swf (embeded in an html page) is being served. I have done some testing and it seems that the following client-side AS3 code would do the job.
var lc:LocalConnection = new LocalConnection();
When I uploaded the swf and the html page to a web server, it did return the domain name of the server where the page and the swf are being hosted.
I hope this tip is useful for you too. 🙂