# Link Dynamic URL

**URL:** <https://forum.kirupa.com/t/link-dynamic-url/109565>\
**Category:** Uncategorized\
**Created:** [May 6, 2004, 7:55pm UTC](https://forum.kirupa.com/t/link-dynamic-url/109565 "2004-05-06T19:55:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BaNa](https://avatars.discourse-cdn.com/v4/letter/b/7ab992/32.png) [@BaNa](https://forum.kirupa.com/u/BaNa)\
**Post date:** [May 6, 2004, 7:55pm UTC](https://forum.kirupa.com/t/link-dynamic-url/109565/1 "2004-05-06T19:55:48Z")

</div>

I am finding it difficult to word this and I hope I get it across OK. Plus it’s late as usual.(-:

My swf file is stored on the web server in say /images/swf/my\_swf.swf

The web page I want to link to is stored in the same folder /images/swf/My\_Page.htm

So if my\_swf.swf is embedded in say Original.htm page in the /images/swf/ directory. When the visitor to Original.htm Clicks on the Button\_btn they will be linked to the My\_Page.htm with the following code.

```auto
_root.Button_btn.onPress = function () {
getURL("My_Page.htm", "mainFrame");
}

```

My Problem is this. I have to store the My\_Page.htm and the my\_swf.swf where they are but the Original.htm is else where and has a number of other .swf’s on it. So now when the Vistor click on the Button\_btn the link tries to find the My\_page.htm in the root of the Original.htm

How can I make the link in the my\_swf.swf force the link to read from the root of the swf rather than the Original.htm?

Did that make sense:h:

Cheers BaNa  
g’night
