# External text file

**URL:** <https://forum.kirupa.com/t/external-text-file/260132>\
**Category:** Uncategorized\
**Created:** [May 12, 2008, 8:23pm UTC](https://forum.kirupa.com/t/external-text-file/260132 "2008-05-12T20:23:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![struct](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@struct](https://forum.kirupa.com/u/struct)\
**Post date:** [May 12, 2008, 8:23pm UTC](https://forum.kirupa.com/t/external-text-file/260132/1 "2008-05-12T20:23:40Z")

</div>

loadVariablesNum(“testimonials.txt”, 0);  
gotoAndPlay(“load”);

This code works perfect when testing, and it works perfect viewing the SWF, but when you view the HTML file with the SWF embedded, it doesn’t display the text file content.

Any Ideas?

---

<div class="post-metadata">

**Author:** ![brndn](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@brndn](https://forum.kirupa.com/u/brndn)\
**Post date:** [May 12, 2008, 9:11pm UTC](https://forum.kirupa.com/t/external-text-file/260132/2 "2008-05-12T21:11:00Z")

</div>

it will more than likely be your pathing.  
the swf links to the .txt file relative to the html path. so if the index is in the root of the site and the swf and txt file are are in a folder called assets then the loadVariablesNum(“assets/testimonials.txt”, 0);

---

<div class="post-metadata">

**Author:** ![struct](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@struct](https://forum.kirupa.com/u/struct)\
**Post date:** [May 13, 2008, 1:09pm UTC](https://forum.kirupa.com/t/external-text-file/260132/3 "2008-05-13T13:09:33Z")

</div>

its not the pathing, both are in the same folder

---

<div class="post-metadata">

**Author:** ![Syous](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@Syous](https://forum.kirupa.com/u/Syous)\
**Post date:** [May 13, 2008, 1:20pm UTC](https://forum.kirupa.com/t/external-text-file/260132/4 "2008-05-13T13:20:14Z")

</div>

Humor us and try this.

loadVariablesNum(“foldername/foldernameagain/testimonials.txt”, 0);

Obviously insert correct values for foldernames =p

---

<div class="post-metadata">

**Author:** ![struct](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@struct](https://forum.kirupa.com/u/struct)\
**Post date:** [May 13, 2008, 1:40pm UTC](https://forum.kirupa.com/t/external-text-file/260132/5 "2008-05-13T13:40:52Z")

</div>

loadVariablesNum(“[http://www.mywebsite.com/1026/newflash/testimonials.txt](http://www.mywebsite.com/1026/newflash/testimonials.txt)”, 0);

tried it just like that…

Here is the deal, it works in testimonials.html, but I am loading it through index.html as an external swf movie. It doesn’t work that way.

---

<div class="post-metadata">

**Author:** ![struct](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@struct](https://forum.kirupa.com/u/struct)\
**Post date:** [May 13, 2008, 3:00pm UTC](https://forum.kirupa.com/t/external-text-file/260132/6 "2008-05-13T15:00:38Z")

</div>

i figured it out, i used loadvars and it fixed the problem
