Get URL of current page from Flex 3?

前端 未结 7 844
死守一世寂寞
死守一世寂寞 2021-01-12 17:58

How do I determine the URL of the current page from within Flex?

7条回答
  •  难免孤独
    2021-01-12 18:12

    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];
    

提交回复
热议问题