Tuesday, April 5, 2011

actionscript: can I get the http request URL?

a.swf is loaded in a.html which is hosted at http://www.a.com/a.html.

I want to know, if user browses http://www.a.com/a.html, in actionscript, can I get the http request URL? In this example I want http://www.a.com/a.html.

From stackoverflow
  • Flash: this.loaderInfo.url

    Flex: Application.url or Application.loaderInfo.url

    Bin Chen : in Flash builder 4 can't work
    alxx : Have you imported Application class? What is error message?

0 comments:

Post a Comment