# External path problem

**URL:** https://forum.kirupa.com/t/external-path-problem/165258
**Category:** flash
**Created:** [October 9, 2005, 7:54pm UTC](https://forum.kirupa.com/t/external-path-problem/165258 "2005-10-09T19:54:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ozute](https://avatars.discourse-cdn.com/v4/letter/o/bbe5ce/32.png) [@Ozute](https://forum.kirupa.com/u/Ozute)
#### Post date: [October 9, 2005, 7:54pm UTC](https://forum.kirupa.com/t/external-path-problem/165258/1 "2005-10-09T19:54:00Z")

</div>

I have an swf called main.swf located in de following directory: c:/main/main.swf

In main.swf I load an external swf called external.swf wich is located on c:/main/files/external.swf

In external.swf I load an external jpeg.  
The path to the jpeg file in external.swf is written as follows: “./images/foto.jpg”

Everything works fine if I run external.swf but If I run main.swf the external foto isn’t loaded because the document root of external swf is now suddenly c:/main instead of c:/main/files

Is there any solotion for this problem? I would really like to know ontherwise I have to change the paths in about 40 external files!

Thanx in advance!
