0 Replies Latest reply on Feb 19, 2010 7:51 AM by Wasim Khamlichi

    Retrieve domain where Flash object is embedded

    Wasim Khamlichi

      Hi,

       

      I need a way to retrieve the domain where my flash application is embedded. So my flash application is located at http://www.domain.com/flash.swf and the application is embedded on http://www.anotherdomain.com - I would like a way to retrieve anotherdomain.com in my Flash application.

       

      I have tried using the LocalConnection object and displaying the LocalConnection.domain value but this only returns domain.com and not anotherdomain.com. I have also tried using ExternalCall and Javascript, which works fine and displays domain.com - but Javascript must be enabled on the users browser in order for this to work.

       

      Is there any other way I can do this using Actionscript only?

       

      Appreciate the help

       

      Thanks