Relative Linking

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