# Loading dynamic text problem

**URL:** <https://forum.kirupa.com/t/loading-dynamic-text-problem/62808>\
**Category:** flash\
**Created:** [August 31, 2004, 1:29pm UTC](https://forum.kirupa.com/t/loading-dynamic-text-problem/62808 "2004-08-31T13:29:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![danx](https://avatars.discourse-cdn.com/v4/letter/d/6f9a4e/32.png) [@danx](https://forum.kirupa.com/u/danx)\
**Post date:** [August 31, 2004, 1:29pm UTC](https://forum.kirupa.com/t/loading-dynamic-text-problem/62808/1 "2004-08-31T13:29:30Z")

</div>

Hi there,

I wonder if anyone can help. I’ve been trying to load an external text file on release and have done this without a problem on a separate movie but I just can’t get it to work on the attached movie - most frustrating! Here’s the code attached to the movie clip but it’ll probably be clearer if you have a look at the movie.

Thanks in advance

Dan

on (rollOver) {  
bounce = false;  
// this controls the scaling for the bounce effect  
// you can change these to make the bounce big or small  
// multiplication makes it bigger  
// division makes it smaller  
xscale = Number(xscale_1.2);  
yscale = Number(yscale_1.2);  
\_root.x = 1;  
\_root.caption.words = “Chartwell Investment”;

}  
on (rollOut) {  
bounce = false;  
// this resets the scaling for the bounce effect  
// this number has to match the “xscale” and “yscale” at the top layer of this clip  
xscale = Number(100);  
yscale = Number(100);  
\_root.x = 0;  
\_root.caption.words = " ";  
}  
on (release) {  
loadText = new loadVars();  
loadText.load(“text/fs.txt”);  
//creating the loadVarsText function  
loadText.onLoad = function() {  
scroller.text = this.fstext;  
};

}

---

<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 31, 2004, 1:56pm UTC](https://forum.kirupa.com/t/loading-dynamic-text-problem/62808/2 "2004-08-31T13:56:47Z")

</div>

It won’t work because your textfield isn’t in the same timeline as your script, hence no valid target is found.  
You have to correct reference the textfield:

```auto
_parent.scroller.text = this.fstext;

```

---

<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 31, 2004, 3:11pm UTC](https://forum.kirupa.com/t/loading-dynamic-text-problem/62808/3 "2004-08-31T15:11:46Z")

</div>

Thanks very much, it’s so simple when you know how!

Getting there…

---

<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:** [September 1, 2004, 2:43am UTC](https://forum.kirupa.com/t/loading-dynamic-text-problem/62808/4 "2004-09-01T02:43:35Z")

</div>

Welcome 🙂
