# getURL

**URL:** <https://forum.kirupa.com/t/geturl/218953>\
**Category:** Uncategorized\
**Created:** [March 12, 2007, 7:35pm UTC](https://forum.kirupa.com/t/geturl/218953 "2007-03-12T19:35:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haxorbox](https://avatars.discourse-cdn.com/v4/letter/h/3d9bf3/32.png) [@Haxorbox](https://forum.kirupa.com/u/Haxorbox)\
**Post date:** [March 12, 2007, 7:35pm UTC](https://forum.kirupa.com/t/geturl/218953/1 "2007-03-12T19:35:44Z")

</div>

Hello

## I’m having trouble getting my linkbar to work globally.

## **CLICK this link to view an image of my Problem.** [http://www.haxorbox.com/linkageIssue.jpg](http://www.haxorbox.com/linkageIssue.jpg)

Basically I want my flash movie to open a html file using the getURL command that is in a different directory.

The black text in the image represent [COLOR=royalblue]Folders[/COLOR] and the Lightblue text represent [COLOR=royalblue]Files[/COLOR]. Every html file has the linkbar.swf within it. If I click a button that brings me to a [COLOR=royalblue]File[/COLOR] inside the portfolio [COLOR=royalblue]Folder[/COLOR] then try and click a link that brings you back to the Web Page folder it has an error because the getURL is looking for “index.html” but it isn’t inside of the portfolio folder.  
I don’t want to have to make 2 seperate swf files, one containing  
getURL(“index.html”)  
and another  
getURL("…/index.html")  
I want my linkbar.swf to be global… So what is the coding I need to insert so my button links will check if the file is inside a folder, and if it isn’t, look in a directory higher.

I hope this makes sence.  
Thanks for the help.
