# Old \> new

**URL:** <https://forum.kirupa.com/t/old-new/253584>\
**Category:** Uncategorized\
**Created:** [March 3, 2008, 8:41am UTC](https://forum.kirupa.com/t/old-new/253584 "2008-03-03T08:41:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shine](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@shine](https://forum.kirupa.com/u/shine)\
**Post date:** [March 3, 2008, 8:41am UTC](https://forum.kirupa.com/t/old-new/253584/1 "2008-03-03T08:41:09Z")

</div>

[COLOR=black][FONT=Verdana]Hi, i new to AS and now i have run in to a problem. How do i get the url to the page swf-file is?[/FONT][/COLOR]  
[COLOR=black][FONT=Verdana]In version 7 it looks like this:[/FONT][/COLOR]

```auto

[FONT=Verdana][COLOR=black][COLOR=black][FONT=Verdana]1. [/FONT][/COLOR][COLOR=blue][FONT=Verdana]if[/FONT][/COLOR][COLOR=black][FONT=Verdana] (region != [/FONT][/COLOR][COLOR=#009900][FONT=Verdana]"Stockholm"[/FONT][/COLOR][COLOR=black][FONT=Verdana])[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]2. [/FONT][/COLOR][COLOR=blue][FONT=Verdana]getURL[/FONT][/COLOR][COLOR=black][FONT=Verdana]([/FONT][/COLOR][COLOR=blue][FONT=Verdana]_root[/FONT][/COLOR][COLOR=black][FONT=Verdana].[/FONT][/COLOR][COLOR=blue][FONT=Verdana]url[/FONT][/COLOR][COLOR=black][FONT=Verdana] + [/FONT][/COLOR][COLOR=#009900][FONT=Verdana]"?region=Stockholm"[/FONT][/COLOR][COLOR=black][FONT=Verdana]);[/FONT][/COLOR]
[/COLOR][/FONT]

```

[COLOR=black][FONT=Verdana]But in version 8 or later i doesn’t work. I have tryed [COLOR=blue]\_root.\_url[/COLOR] but then i get the adress to the swf -file. Can somebody help me please?![/FONT][/COLOR]  
[FONT=Verdana][COLOR=black]/Sofia[/COLOR][/FONT]
