Return to Snippet

Revision: 39129
at January 13, 2011 22:57 by Activetuts


Initial Code
root.loaderInfo.url;

Initial URL
http://enva.to/e4ig6z

Initial Description
<p>Alternatively, to access the URL where the SWF resides we can access the url property of the LoaderInfo object belonging to our SWF's root. Note this is the location of the SWF file and NOT the HTML page it's embedded in. It's important to make this distinction as both the SWF and HTML could reside on different domains.</p>

Initial Title
Get URL of the Page Where SWF is Embedded: Appendix

Initial Tags

                                

Initial Language
ActionScript 3