Loading external files with relative URL's

How I wish we would not forget, or forget how to forget. Well anyway I got this problem. I am loading some external text files, in my swf and everything is fine until I put the things online. Then, as it seems it tries to load load the text files from the directory where the downloaded swf file is, and not the online location. Now I could of course set absolute urls but then I have to edit them every time I move my files around the site. I am pretty sure I had a way to pick up the location of the original swf without editing it, but for some reason I cannot remember. Please help :puzzle: