# Preloader to load external .txt files?

**URL:** <https://forum.kirupa.com/t/preloader-to-load-external-txt-files/282947>\
**Category:** flash\
**Created:** [February 28, 2009, 3:10am UTC](https://forum.kirupa.com/t/preloader-to-load-external-txt-files/282947 "2009-02-28T03:10:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nufish](https://avatars.discourse-cdn.com/v4/letter/n/9d8465/32.png) [@nufish](https://forum.kirupa.com/u/nufish)\
**Post date:** [February 28, 2009, 3:10am UTC](https://forum.kirupa.com/t/preloader-to-load-external-txt-files/282947/1 "2009-02-28T03:10:40Z")

</div>

I have made a preloader for my content, where my content is .txt files that are loaded into a movieclip that fades in with alpha.

But if I upload my files the content in the .txt files do not fade in smoothly, the just appear.

So I am assuming that these .txt files are not preloaded, since I use the code below for my preloader which does not contain preloading external files.

[COLOR=RoyalBlue]midframe=35  
bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_100;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(5);  
}[/COLOR]

So I was wondering, is there anyway I can add something to the preloader code. Something like [COLOR=RoyalBlue]“if myText.txt are loaded, go to and play frame 5”[/COLOR]

I know this is the problem, since once I press Page1 button it preloads the content on that page and the dynamic text just appears, but if i press Page1 button again, it fades in as I want, which is because it has been loaded once.

I hope there is some easy way to solve this.
