Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you find the URL to the SWF file using ActionScript 2?

I'm looking for a way to find out the URL of a SWF using ActionScript 2.

In ActionScript 3 this is done by using root.loaderInfo.loaderURL, but I haven't found any equivalent in ActionScript 2.

Please note that I'm not looking for the URL to 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 wish it were).

like image 305
Theo Avatar asked Nov 25 '25 10:11

Theo


2 Answers

in every MovieClip is the _url property available.

example: trace (_url);

I found it myself:

_root._url;

Very simple!

like image 42
Theo Avatar answered Nov 28 '25 11:11

Theo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!