# Monitoring loading progress to \*.txt

**URL:** <https://forum.kirupa.com/t/monitoring-loading-progress-to-txt/95351>\
**Category:** Uncategorized\
**Created:** [November 24, 2003, 5:43pm UTC](https://forum.kirupa.com/t/monitoring-loading-progress-to-txt/95351 "2003-11-24T17:43:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnmartin](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@johnmartin](https://forum.kirupa.com/u/johnmartin)\
**Post date:** [November 24, 2003, 5:43pm UTC](https://forum.kirupa.com/t/monitoring-loading-progress-to-txt/95351/1 "2003-11-24T17:43:22Z")

</div>

Hi People.  
I can’t monitoring the loading process of a txt.

I have this on on frame:  
//----------------------------------------------------------  
datos = new LoadVars();  
datos.load(“contenido.txt”);  
//----------------------------------------------------------

… and applying the movieClip loader method to monitoring the load progress I use this (I guess):

//----------------------------------------------------------  
onClipEvent (load) {  
\_xscale = 0;  
tot =datos.getBytesTotal();  
}  
onClipEvent (enterFrame) {  
car = datos.getBytesLoaded();  
perc = Math.round((car/tot)_10);  
\_xscale += (perc_10-\_xscale)/5;  
if (car\>=tot) {  
datos.onLoad = function() {  
salida\_txt.text = this.info;  
//info is the var in the txt  
};  
}  
}  
//----------------------------------------------------------

but, this not works !

Please help me with this, Thanks !

JOHNMARTIN
