# Preloading Dynamic Text

**URL:** <https://forum.kirupa.com/t/preloading-dynamic-text/106705>\
**Category:** Uncategorized\
**Created:** [April 8, 2004, 2:31am UTC](https://forum.kirupa.com/t/preloading-dynamic-text/106705 "2004-04-08T02:31:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicksta](https://avatars.discourse-cdn.com/v4/letter/n/cc9497/32.png) [@Nicksta](https://forum.kirupa.com/u/Nicksta)\
**Post date:** [April 8, 2004, 2:31am UTC](https://forum.kirupa.com/t/preloading-dynamic-text/106705/1 "2004-04-08T02:31:13Z")

</div>

I recently created a site which is up and running. The site works fine and is not to big. It loads external txt files using the following actionscript:

**loadText = new loadVars();  
loadText.load(“anton.txt”);  
// creating the loadVarsText function  
loadText.onLoad = function() {  
anton.text = this.Antontext;  
};**  
Ive noticed a delay in loading the txt files. I would like to add a preloader on the site for each one of these txt files with a small loading animation for them nothing to fancy. Im fairly new to actionscripting and Im using Flash MX 6 any help would be appreciated  
By the way the site address is:  
[**www.team42.za.net**](http://www.team42.za.net)

---

<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:** [April 8, 2004, 10:34am UTC](https://forum.kirupa.com/t/preloading-dynamic-text/106705/2 "2004-04-08T10:34:38Z")

</div>

your preloader should be a MovieClip with 2 frames (proberly 1 is also working)  
in the first you write what you want to be updated like loadedBytes = (\_parent.)loadText.getBytesLoaded

and the in the second  
gotoAndPlay(1)  
just read through the LoadVars help and you will find out how !!  
if the loading is finished you just make it invisble and  
on demand again visible
