# Relative Linking

**URL:** <https://forum.kirupa.com/t/relative-linking/171659>\
**Category:** flash\
**Created:** [December 7, 2005, 4:22am UTC](https://forum.kirupa.com/t/relative-linking/171659 "2005-12-07T04:22:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coertli](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@coertli](https://forum.kirupa.com/u/coertli)\
**Post date:** [December 7, 2005, 4:22am UTC](https://forum.kirupa.com/t/relative-linking/171659/1 "2005-12-07T04:22:55Z")

</div>

So I have a swf file in a certain directory call this file “A”. In that same directory I have another swf file, called “B”, that is loaded into file “A” using the loadMovie method. The loadMovie in file “A” reads…movieClip.loadMovie(B.swf). File “A” looks fine when previewed, and B load perfectly.

The problem arises when I am loading file “A” into my template in dreamweaver for all of my webpages. I do this, and now the path inside the loadMovie method is invalid and “B” no longer loads.

I tried making the loadMovie in “A” to say… movieClip.loadMovie(/Directory1/Directory2/B.swf). Unless I am mistaken, the first “/” will take the loadMovie to the root folder, but this doesn’t work either.

Essentially all of my HTML pages have different relative paths to the file “B”. Any ideas?

Thanks
