# How to retrieve current URL into Flash

**URL:** <https://forum.kirupa.com/t/how-to-retrieve-current-url-into-flash/291385>\
**Category:** flash\
**Created:** [June 29, 2009, 1:47am UTC](https://forum.kirupa.com/t/how-to-retrieve-current-url-into-flash/291385 "2009-06-29T01:47:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![undertoad666](https://avatars.discourse-cdn.com/v4/letter/u/ea666f/32.png) [@undertoad666](https://forum.kirupa.com/u/undertoad666)\
**Post date:** [June 29, 2009, 1:47am UTC](https://forum.kirupa.com/t/how-to-retrieve-current-url-into-flash/291385/1 "2009-06-29T01:47:49Z")

</div>

Is it possible for a flash file to retrieve the current url from the browser and populate a dynamic text field with that url?

So say my swf is embedded at [http://mysite.com](http://mysite.com)  
I have a dynamic text field in my swf labeled myText

What actionscript would be needed for that myText field to recognize the url and populate with “[http://mysite.com](http://mysite.com)”?

Any help would be appreciated.
