# Help! dynamicly loadet text ! preloader

**URL:** <https://forum.kirupa.com/t/help-dynamicly-loadet-text-preloader/179928>\
**Category:** Uncategorized\
**Created:** [February 24, 2006, 12:33am UTC](https://forum.kirupa.com/t/help-dynamicly-loadet-text-preloader/179928 "2006-02-24T00:33:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aBnest](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/abnest/32/2177_2.png) [@aBnest](https://forum.kirupa.com/u/aBnest)\
**Post date:** [February 24, 2006, 12:33am UTC](https://forum.kirupa.com/t/help-dynamicly-loadet-text-preloader/179928/1 "2006-02-24T00:33:11Z")

</div>

ca someone help me this: i need to find out how to create a dynamic text box inside the MovieClipLoader so it can be preloaded please anyone …help!

here is my code:  
MovieClip.prototype.fadeIn = function() {  
this.onEnterFrame = function() {  
if (this.\_alpha\<100) {  
this.\_alpha += 10;  
} else {  
delete this.onEnterFrame;  
}  
};  
};  
bar.\_visible = false;  
border.\_visible = false;  
var empty = this.createEmptyMovieClip(“container”, “100”);  
empty.\_x = 0;  
empty.\_y = 0;  
my\_mc = new MovieClipLoader();//inside this  
preload = new Object();  
my\_mc.addListener(preload);  
this.createTextField(“my\_txt”, 3, 200, 90, 450, 150);// i need to link this (2 rows up)  
my\_txt.type=“dynamic”;  
my\_txt.multiline = true;  
my\_txt.wordWrap = true;  
//my\_txt.embedFonts = true;  
my\_txt.font="\_sans";  
var my\_fmt:TextFormat = new TextFormat();  
my\_fmt.color = 0xB6C0B6;

preload.onLoadStart = function(targetMC) {  
trace("started loading "+targetMC);  
container.\_alpha = 0;  
bar.\_visible = true;  
border.\_visible = true;  
pText.\_visible = true;  
};  
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {  
bar.\_width = (lBytes/tBytes)\*100;  
pText.text = “% “+Math.round((lBytes/tBytes)\*100);  
};  
preload.onLoadComplete = function(targetMC) {  
container.fadeIn();  
border.\_visible = false;  
bar.\_visible = false;  
dText.\_visible = false;  
trace(targetMC+” finished”);  
};

loadText = new LoadVars();  
loadText.load(“lorem.txt”);  
loadText.onLoad = function() {  
my\_txt.text = this.txtField;  
my\_txt.setTextFormat(my\_fmt);  
};  
trace(my\_txt);
