# Getting a current HTTP address

**URL:** <https://forum.kirupa.com/t/getting-a-current-http-address/167837>\
**Category:** flash\
**Created:** [November 1, 2005, 4:00pm UTC](https://forum.kirupa.com/t/getting-a-current-http-address/167837 "2005-11-01T16:00:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kemoslobby](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@Kemoslobby](https://forum.kirupa.com/u/Kemoslobby)\
**Post date:** [November 1, 2005, 4:00pm UTC](https://forum.kirupa.com/t/getting-a-current-http-address/167837/1 "2005-11-01T16:00:19Z")

</div>

I’m sure this a common Actionscript method, but my websearch on how to do this is turning up no results.

Using MX 2004 I am trying to get the current value of the web address in which the swf is residing and have actions take place based on the HTTP locations.

ie;  
var a:String = this.HTTPaddress;  
var b:String = this.HTTPaddress;

(have certain actions take place based on above vars.)

Thanks for all your help!
