# Can you preload txt files?

**URL:** <https://forum.kirupa.com/t/can-you-preload-txt-files/43981>\
**Category:** Uncategorized\
**Created:** [February 27, 2004, 5:22pm UTC](https://forum.kirupa.com/t/can-you-preload-txt-files/43981 "2004-02-27T17:22:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kb08807](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kb08807/32/449_2.png) [@kb08807](https://forum.kirupa.com/u/kb08807)\
**Post date:** [February 27, 2004, 5:22pm UTC](https://forum.kirupa.com/t/can-you-preload-txt-files/43981/1 "2004-02-27T17:22:30Z")

</div>

In my flash file, I have a scrollbar component pulling text from a txt file. When I view my swf over the internet, sometimes it is slow to display the text inside of the scrollbar text area.

Is there a way to correct this slow lag time? Perhaps preload the txt files somehow?

I appreciate any tips you have for me. Thanks.

* * *

The actionscript I am using to pull the text from the txt file is:  
loadText = new LoadVars();  
loadText.load(“project\_text.txt”);  
//creating the loadVarsText function  
loadText.onLoad = function() {  
scroller.text = this.projecttext;  
};
