# Need help loading external .txt properly

**URL:** https://forum.kirupa.com/t/need-help-loading-external-txt-properly/197455
**Category:** Uncategorized
**Created:** [August 16, 2006, 2:57pm UTC](https://forum.kirupa.com/t/need-help-loading-external-txt-properly/197455 "2006-08-16T14:57:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![split67](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/split67/32/2089_2.png) [@split67](https://forum.kirupa.com/u/split67)
#### Post date: [August 16, 2006, 2:57pm UTC](https://forum.kirupa.com/t/need-help-loading-external-txt-properly/197455/1 "2006-08-16T14:57:33Z")

</div>

I have external .txt files that loads information into a defined area. It works fine through testing on my computer. Once uploaded, I’m getting an undefined in the fields where the information should appear.

The link:  
[http://www.shakeyhands.com/BunnyB/gallery01.swf](http://www.shakeyhands.com/BunnyB/gallery01.swf)

Here’s the code i’m using to load the .txt file when a thumbnail is selected:

\*\*imageFrame.thumbSelected = function() {  
showImage(this.imagePath);  
loadText = new LoadVars();  
loadText.load(this.txt);  
loadText.onLoad = function() {  
model.text = this.model;  
colors.text = this.colors;  
sizes.text = this.sizes;  
};  
};  
\*\*  
here’s the line of code I’m using to load the proper .txt file when selected:

**thumbFrame.txt = “Data/gal1/1\_0”+x+".txt";**

Also, got a way to avoid having a browser automatically resize the .swf to it’s size? I want to maintain the actual size of the .swf file because when enlarged, the quality of the images is poor.

Any ideas??? Thanks a ton.
