# Getting the URL of the page containing a Flash movie

**URL:** <https://forum.kirupa.com/t/getting-the-url-of-the-page-containing-a-flash-movie/206156>\
**Category:** Uncategorized\
**Created:** [November 5, 2006, 11:29pm UTC](https://forum.kirupa.com/t/getting-the-url-of-the-page-containing-a-flash-movie/206156 "2006-11-05T23:29:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wutwjd](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/wutwjd/32/758_2.png) [@wutwjd](https://forum.kirupa.com/u/wutwjd)\
**Post date:** [November 5, 2006, 11:29pm UTC](https://forum.kirupa.com/t/getting-the-url-of-the-page-containing-a-flash-movie/206156/1 "2006-11-05T23:29:30Z")

</div>

Hello. Just a quick question to something that seems like it should be easy…

Let’s say I have a SWF on [www.mysite.com that a bunch of users embed onto their websites. I want the SWF to be able to detect which URL it is that it’s being embedded on (so, if the page which embedded the SWF was on [URL=“http://www.yoursite.com”]www.yoursite.com, I want the SWF to be able to detect [URL=“http://www.yoursite.com%29”]www.yoursite.com). Is there a clean and easy way of doing this? All the examples I could find would return only [URL=“http://www.mysite.com”]www.mysite.com](http://www.mysite.com).

Thank you very much.
