views:

25

answers:

1

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.

A: 

Flash: this.loaderInfo.url

Flex: Application.url or Application.loaderInfo.url

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