Relative Pathing

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


 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().