Get URL of current page from Flex 3?
问题 How do I determine the URL of the current page from within Flex? 回答1: Using ExternalInterface ( flash.external.ExternalInterface ), you can execute Javascript in the browser. Knowing this, you can call ExternalInterface.call("window.location.href.toString"); to get the current URL (note that this will be the page url and not the .swf url). hth Koen 回答2: Let's be clear here. 1. If you want the URL of the loaded SWF file, then use one of these. Inside your application: this.url; From anywhere