Getting the URL of the page containing a Flash movie

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.

Thank you very much.