My swf needs to know the url of the page that it is integrated into

Hey all,.

I want to know the page that is embedded in the url, but I don't want to use FlashVars to pass into it manually. I would like to than the swf file to detect itself without additional external code. Is this possible?

Thank you!

You can check the url of the swf file using this.loaderInfo.url.

to check the html url integration, you will need to use javascript in the html code and can then externalinterface to use actionscript to retrieve this value in your swf file.

Tags: Adobe Animate

Similar Questions

Maybe you are looking for