# Absolute Relative URL

**URL:** <https://forum.kirupa.com/t/absolute-relative-url/221639>\
**Category:** flash\
**Created:** [April 5, 2007, 9:41pm UTC](https://forum.kirupa.com/t/absolute-relative-url/221639 "2007-04-05T21:41:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViRiPuFF](https://avatars.discourse-cdn.com/v4/letter/v/a4c791/32.png) [@ViRiPuFF](https://forum.kirupa.com/u/ViRiPuFF)\
**Post date:** [April 5, 2007, 9:41pm UTC](https://forum.kirupa.com/t/absolute-relative-url/221639/1 "2007-04-05T21:41:07Z")

</div>

Hi

I’m new to Flash and ActionScript.

I’ve created an animation that contains a command button this I have published in a Web page. This page is called Index.html and lives in a Folder called Animation that lives in a folder called Site.

I have a second page called Frameset.html that lives in a folder called Pages that lives in the same folder as Animation i.e. Site. I need to open Frameset.html by clicking the button on the animation in Index.html.

I can do this by using the absolute URL on the Button’s Action to refer to the page I want opened when a user clicks the command button. This works fine Frameset.html loads when the button is clicked.

The problem is that I need to copy the site onto CD and then onto a server and thus the absolute URL I have from my development machine will not work.

Is there any way I could tell Flash to move up and down the hierarchy of nested files, folders which are all contained within the Folder Site and using the Flash getURL instruction use a relative URL to the file ie just call the Folder names and the file name. e.g. getURL(Site/Pages/Frameset.html) in this case.  
Thanks  
ViRiPuff NoImage = NoSigImageNoImage = NoImageRes
