# Load text problem

**URL:** <https://forum.kirupa.com/t/load-text-problem/7764>\
**Category:** Uncategorized\
**Created:** [November 7, 2002, 7:04am UTC](https://forum.kirupa.com/t/load-text-problem/7764 "2002-11-07T07:04:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![slayerment](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@slayerment](https://forum.kirupa.com/u/slayerment)\
**Post date:** [November 7, 2002, 7:04am UTC](https://forum.kirupa.com/t/load-text-problem/7764/1 "2002-11-07T07:04:42Z")

</div>

i cant get this tutorial to work:  
[http://www.kirupa.com/developer/mx/dynamic\_scroller.asp](http://www.kirupa.com/developer/mx/dynamic_scroller.asp)  
i made the dynamic text box and called it scroller and have a text file in the same dir called text.txt. and i put this code on the first line:  
loadText = new loadVars();  
loadText.load(“text.txt”);  
//creating the loadVarsText function  
loadText.onLoad = function() {  
scroller.text = this.text;  
};

any help would be great!

---

<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:** [November 7, 2002, 7:07am UTC](https://forum.kirupa.com/t/load-text-problem/7764/2 "2002-11-07T07:07:05Z")

</div>

you start your text file out with text= ???

---

<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:** [November 7, 2002, 7:24am UTC](https://forum.kirupa.com/t/load-text-problem/7764/3 "2002-11-07T07:24:13Z")

</div>

Well, there is a way for not assigning ur txt files a variable lostinbeta :)!

---

<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:** [November 7, 2002, 7:25am UTC](https://forum.kirupa.com/t/load-text-problem/7764/4 "2002-11-07T07:25:42Z")

</div>

Yes, I am aware of that, but that tutorial he used doesn’t work like that.

---

<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:** [November 7, 2002, 7:27am UTC](https://forum.kirupa.com/t/load-text-problem/7764/5 "2002-11-07T07:27:07Z")

</div>

yeah, i just checked the tutorial, maybe he forgot to add the variable :)!

---

<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:** [November 7, 2002, 9:31pm UTC](https://forum.kirupa.com/t/load-text-problem/7764/6 "2002-11-07T21:31:04Z")

</div>

hey thx for ur help guys. i forgot to add the text= thing at the top of my .txt file. sorry ☹

---

<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:** [November 7, 2002, 9:32pm UTC](https://forum.kirupa.com/t/load-text-problem/7764/7 "2002-11-07T21:32:14Z")

</div>

hey lost,

u really know ur members ;)!!

yours,  
h88

---

<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:** [November 7, 2002, 10:14pm UTC](https://forum.kirupa.com/t/load-text-problem/7764/8 "2002-11-07T22:14:38Z")

</div>

Hey no problem slayerment.

ANd thanks h88 🙂
