# Dynamic loading text doesn't work

**URL:** <https://forum.kirupa.com/t/dynamic-loading-text-doesnt-work/60765>\
**Category:** Uncategorized\
**Created:** [August 12, 2004, 11:24am UTC](https://forum.kirupa.com/t/dynamic-loading-text-doesnt-work/60765 "2004-08-12T11:24:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Algreco](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Algreco](https://forum.kirupa.com/u/Algreco)\
**Post date:** [August 12, 2004, 11:24am UTC](https://forum.kirupa.com/t/dynamic-loading-text-doesnt-work/60765/1 "2004-08-12T11:24:16Z")

</div>

hey,  
I have a text field inside a movie clip. I load to it from the root with a global variable (\_global.textin) the text i need to load. I trace the text and it shows in the trace everything that works fine, but the inside the dynamic field doesn’t change!.  
any ideas?  
here’s the script for the MC that holds the textfield:  
[size=1][/size]  
[size=1] **Code:** [/size]  
[font=Courier new]onClipEvent (load){  
var txtborder = false;  
var txtborderColor = 0x000000;//borderColor;  
var txtcolor = 0x712DF0;  
var txtbackground = false;  
var txtbackgroundColor = 0xFFFFFF;  
//set attributes  
with (this.textin)  
{  
textColor = txtcolor;  
border = txtborder;  
borderColor = txtborderColor;  
background = txtbackground;  
backgroundColor = txtbackgroundColor;  
multiline = true;  
wordWrap = false;  
autoSize = true;

```
  trace (txtinput);// THIS WORKS FINE
  text = txtinput;//THIS DOESN'T
        
  selectable = false;
  
  var txtfmt = new TextFormat();
  txtfmt.size = 100;
  txtfmt.align = "center";
  setTextFormat(txtfmt);

```

}  
}  
//PARTIAL SCRIPT FROM MAIN TIMELINE:  
var text\_arr = new Array(“Painter”,“Impressionist”);  
\_global.txtinput = text\_arr[cur\_texteffect];  
[/font]

---

<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:** [August 12, 2004, 1:07pm UTC](https://forum.kirupa.com/t/dynamic-loading-text-doesnt-work/60765/2 "2004-08-12T13:07:35Z")

</div>

Is _textin_ the textfield instance name or variable name?  
And do you have a mask over the textfield/movieclip?

---

<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:** [August 12, 2004, 1:14pm UTC](https://forum.kirupa.com/t/dynamic-loading-text-doesnt-work/60765/3 "2004-08-12T13:14:48Z")

</div>

DUDE! you are my hero for the day!!!.  
thank you… I named both the variable AND the instance name textin.  
Bloody hell… cranky.  
Greetz 🙂

---

<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:** [August 12, 2004, 1:19pm UTC](https://forum.kirupa.com/t/dynamic-loading-text-doesnt-work/60765/4 "2004-08-12T13:19:34Z")

</div>

I was going to say that it should be the instance name but i guess you found out by yourself 😛

---

<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:** [August 12, 2004, 1:21pm UTC](https://forum.kirupa.com/t/dynamic-loading-text-doesnt-work/60765/5 "2004-08-12T13:21:14Z")

</div>

YUP 😉  
Thanks a zillion… I can finally rest!!!

---

<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:** [August 12, 2004, 1:22pm UTC](https://forum.kirupa.com/t/dynamic-loading-text-doesnt-work/60765/6 "2004-08-12T13:22:52Z")

</div>

Anytime 😉
