title: ActionScript 3: How to get host name from URL?
body: <p>I am trying to set a path to an XML file, which differs when run locally or on server.</p>
  
  <p>How do I determine if the Flash is running locally? (I am thinking to check if the URL contains "<a href="http://localhost" rel="nofollow noreferrer">http://localhost</a>" but how do you get the window URL?)</p>
  
  <p>Thanks in advance</p>