# Swf address

**URL:** <https://forum.kirupa.com/t/swf-address/315912>\
**Category:** flash\
**Created:** [November 7, 2010, 5:55pm UTC](https://forum.kirupa.com/t/swf-address/315912 "2010-11-07T17:55:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pumpkin05](https://avatars.discourse-cdn.com/v4/letter/p/b4bc9f/32.png) [@pumpkin05](https://forum.kirupa.com/u/pumpkin05)\
**Post date:** [November 7, 2010, 5:55pm UTC](https://forum.kirupa.com/t/swf-address/315912/1 "2010-11-07T17:55:39Z")

</div>

Hi everyone ,  
Im using swf address at the moment all is working well but there is one thing I would like to tweak.

The code below displays my URL as [www.swfaddress.com/#this?id=That](http://www.swfaddress.com/#this?id=That)

What code do I need to change to make it display the url as: [www.swfaddress.com/this/that](http://www.swfaddress.com/this/that)

The flag on the relevant keyframe for this address is: $this?id=That

```auto
SWFAddress.setStrict(false);
SWFAddress.onChange = function() {
    var value = SWFAddress.getValue();
    var path = SWFAddress.getPath();
    var id = SWFAddress.getParameter('id');
    if (_currentframe == 2 && value == '') {
        play();
    } else {
        gotoAndStop('$' + value);
    }
    var title = ‘Swf Address’;  
    var names = SWFAddress.getPathNames();
    for (var i = 0; i < names.length; i++) {
        title += ' :: ' + names*.substr(0,1).toUpperCase() + names*.substr(1);
    }
    var id = SWFAddress.getParameter('id');
    if (id != '') {
        title += ' :: ' + id; 
    }
    SWFAddress.setTitle(title);
}
stop();

```

Thanks for having a look.
