# Getting URL of current swf

**URL:** <https://forum.kirupa.com/t/getting-url-of-current-swf/166062>\
**Category:** flash\
**Created:** [October 16, 2005, 5:29pm UTC](https://forum.kirupa.com/t/getting-url-of-current-swf/166062 "2005-10-16T17:29:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![freeskier89](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@freeskier89](https://forum.kirupa.com/u/freeskier89)\
**Post date:** [October 16, 2005, 5:29pm UTC](https://forum.kirupa.com/t/getting-url-of-current-swf/166062/1 "2005-10-16T17:29:24Z")

</div>

I know I have seen the answer to this question before, but I can not seem to find it. I even thought it was on this site. Well anyway, how do you get the url of the where the current swf is located. Say test.swf is on [www.kirupa.com](http://www.kirupa.com). In test.swf how do you get the url [www.kirupa.com](http://www.kirupa.com)? If I remember right there is a very very simple answer. :S

Thanks!
