Cool!! Thanks Alex!

--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Applicaiton.application.url
> 
> ________________________________
> 
> From: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of cuddlygunchi
> Sent: Wednesday, November 28, 2007 10:18 PM
> To: [email protected]
> Subject: [flexcoders] Find url of site hosting the Flex App
> 
> 
> 
> Hello,
> 
> How can I find inside my flex app the url that is serving it.
> 
> Eg. if my app is being accessed as http://mysite.com/myapp.html,
> <http://mysite.com/myapp.html,>  I 
> would like to have this url in a string inside my app at runtime so 
> that I can change the behavior of my app depending on where it is 
being 
> served from.
> 
> The requirement is there because I have 3 environments for 
> dev/test/prod qualified by their urls and I would like to have the 
same 
> flex swf deployed on these that would behave differently for 
different 
> envs.
> 
> Many Thanks,
> Aman
>


Reply via email to