How do I determine the URL of the current page from within Flex?
From the Application, use: this.loaderInfo.loaderURL
to break it apart and use parts of it do:
var splitURL:Array = this.loaderInfo.loaderURL.split('/'); var baseURL:String = "http://"+splitURL[2];