# Problem with loading external files online

**URL:** <https://forum.kirupa.com/t/problem-with-loading-external-files-online/38522>\
**Category:** Uncategorized\
**Created:** [December 24, 2003, 9:06am UTC](https://forum.kirupa.com/t/problem-with-loading-external-files-online/38522 "2003-12-24T09:06:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leenx](https://avatars.discourse-cdn.com/v4/letter/l/ed655f/32.png) [@leenx](https://forum.kirupa.com/u/leenx)\
**Post date:** [December 24, 2003, 9:06am UTC](https://forum.kirupa.com/t/problem-with-loading-external-files-online/38522/1 "2003-12-24T09:06:00Z")

</div>

Hi

I have a flash file witch loads an external flash file, offline everyting works

loadText = new loadVars();  
loadText.load(“data/data.txt”);  
title.html = true;  
//creating the loadVarsText function  
loadText.onLoad = function() {  
title.htmlText = this.title;  
};

but when i upload the folder with the .swf file and a folder “data” with the data.txt, it seems that the flash file can not find it anymore… anyone an idea… i tried lots of different paths and stuff, nothing seems to work

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 24, 2003, 9:23am UTC](https://forum.kirupa.com/t/problem-with-loading-external-files-online/38522/2 "2003-12-24T09:23:24Z")

</div>

```auto
loadText = new loadVars();
title.html = true;
loadText.onLoad = function(success) {
title.htmlText = (success) ? this.title : "error";
};
loadText.load("data/data.txt");

```

if you see “error,” check your file paths. if you see nothing, check your textbox path. Also, change your textbox name to something else like “title1” because “title” is a reserved keyword 😉

edit: remember\*\* reference external files from where the html page is, not the swf.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 24, 2003, 9:36am UTC](https://forum.kirupa.com/t/problem-with-loading-external-files-online/38522/3 "2003-12-24T09:36:06Z")

</div>

Ok thanx for the quick answer, find out what it was: the content management system where i had to paste my flash code in, \*\*\*\*ed up the html, made an include file instead…
