# Relative Pathing

**URL:** <https://forum.kirupa.com/t/relative-pathing/237792>\
**Category:** Uncategorized\
**Created:** [September 4, 2007, 2:19am UTC](https://forum.kirupa.com/t/relative-pathing/237792 "2007-09-04T02:19:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![twistedpixel](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@twistedpixel](https://forum.kirupa.com/u/twistedpixel)\
**Post date:** [September 4, 2007, 2:19am UTC](https://forum.kirupa.com/t/relative-pathing/237792/1 "2007-09-04T02:19:29Z")

</div>

Hi,

How do you do this…

Suppose I have a text component in the main timeline. I then load an swf and I want to update the text component on the main timeline from the swf that I just loaded. I gave in this command

```auto

 var txt_url ="..\pos	xt\posmain.txt";

```

But I get this error :  
Error opening URL “file:///C|/projects/efarmasi/eFarmasi/efarmasi%5FDemo/eFarmasi%5FFlash/…\os xt\osmain.txt”

The text to be updated for this swf file comes from the directory txt which is inside the directory pos which is again inside the main application directory eFarmasiDemo.

I use the txt\_url to load the text that’s specified by it through the normal LoadVars().
