How do you find the url of a SWF file using ActionScript 2?

I am looking for a way to find out the SWF URL using ActionScript 2.

In ActionScript 3, this is done with help root.loaderInfo.loaderURL, but I did not find an equivalent in ActionScript 2.

Note that I'm not looking for the URL of the page where the SWF is embedded, but the URL of the actual SWF and that using ActionScript 3 is not an option (although I would like it to be).

+3
source share
2 answers

Each MovieClip has a _url property.

Example: trace (_url);

+4
source

I myself found:

_root._url;

Very simple!

+3
source

All Articles