On 3/25/08, shivkxr <[EMAIL PROTECTED]> wrote:
> I need to get the domain the Flex app is running in.
>
>  My is hosted at aaa.com
>  A page on bbb.com embeds my app on their page.
>
>  At runtime I need to know that my app is running on bbb.com

I guess the only way to do this is to have the URL passed to the SWF
in the HTML wrapper, or otherwise detect the domain heuristically
(i.e. does myspace.com pass some URL parameters that you can identify
it with?).

Another trick I can think of is to call ExternalInterface and get an
exception: the exception message might contain the domain of the host
page. Quite a hack that would be!

Manish

Reply via email to