You might want to give BrowserManager a go… or mx.utils.URLUtil.

URLUtil includes functions like

* getFullURL():String
* getPort():uint
* WhosYourDaddy():Daddy
* getServerName():String

Search the Flex docs or online for BrowserManager or URLUtil - I'm sure you
will find what you are looking for.

Rick Winscot



From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of shivkxr
Sent: Tuesday, March 25, 2008 2:40 PM
To: [email protected]
Subject: [flexcoders] Re: Get the Domain the Flex app is running in

> The Flash Player does give the domain it is running from. As 
others 
> have stated, Application.application.url will give it to you. You 
don't 
> want to get get the domain it is running off of, you want to get the 
> domain of the web page that embeds it.

That is correct. I need the domain the web page is in. However, 
Application.application.url gives me the domain of the .swf file and 
that is my domain, not the domain of the web page hosting the swf.
 


Reply via email to