# Need help regarding text loader

**URL:** <https://forum.kirupa.com/t/need-help-regarding-text-loader/223599>\
**Category:** Uncategorized\
**Created:** [April 24, 2007, 7:19am UTC](https://forum.kirupa.com/t/need-help-regarding-text-loader/223599 "2007-04-24T07:19:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![montyT](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@montyT](https://forum.kirupa.com/u/montyT)\
**Post date:** [April 24, 2007, 7:19am UTC](https://forum.kirupa.com/t/need-help-regarding-text-loader/223599/1 "2007-04-24T07:19:31Z")

</div>

hi guys i have made the dynamic text loader to the flash file.  
which is not workin.  
here is the script

```auto

loadVariables("text.txt", "");
this.onLoad = function() {
	filesize = txtCamp.getBytesTotal();
};
this.onEnterFrame = function() {
	loaded = txtCamp.getBytesLoaded();
	txt_loader._visible = true;
	if (loaded != filesize) {
		txt_loader._visible = true;
	} else {
		txt_loader._visible = false;
	}
};

```

don’t understand where is the problem on the script.

i need the preloader before the text loads to the swf file.

plz help
