That'll give you the URL of the swf, not the URL of the HTML page. Alex Harui 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 > >
-- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: <http://www.dot-com-it.com> My Podcast: <http://www.theflexshow.com> My Blog: <http://www.jeffryhouser.com>

