# Get url of html page from within swf?

**URL:** <https://forum.kirupa.com/t/get-url-of-html-page-from-within-swf/168285>\
**Category:** Uncategorized\
**Created:** [November 5, 2005, 9:47pm UTC](https://forum.kirupa.com/t/get-url-of-html-page-from-within-swf/168285 "2005-11-05T21:47:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![treatkor](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/treatkor/32/680_2.png) [@treatkor](https://forum.kirupa.com/u/treatkor)\
**Post date:** [November 5, 2005, 9:47pm UTC](https://forum.kirupa.com/t/get-url-of-html-page-from-within-swf/168285/1 "2005-11-05T21:47:11Z")

</div>

is there a way to know the url of the page a flash movie is embedded in, from within that embedded movie?  
kind of like in php, $\_SERVER[‘PHP\_SELF’] returns the page itself.  
i’m trying to pass some url string queries back to the same .php page in a getURL()

these don’t seem to work:  
getURL("?myFoo=foo");  
getURL("#?myFoo=foo");
