# Problem with Dynamic Text

**URL:** https://forum.kirupa.com/t/problem-with-dynamic-text/63865
**Category:** Uncategorized
**Created:** [September 10, 2004, 5:53pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text/63865 "2004-09-10T17:53:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![planetSim](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@planetSim](https://forum.kirupa.com/u/planetSim)
#### Post date: [September 10, 2004, 5:53pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text/63865/1 "2004-09-10T17:53:33Z")

</div>

Hello to all, I’m a new user who just stumbled onto the site when i searched for anyone other than Macromedia to help me with flash. here’s my problem;

I’m trying to load dynamic text into a textbox named intbox

with this code, which I grabbed from this site and modified slightly for my use

loadText = new loadVars();  
loadText.load(“intro.txt”);  
//creating the loadVarsText function  
loadText.onLoad = function() {  
intbox.text = this.introtext;  
};

but I keep getting this message;

**Warning** Scene=Scene 1 fade, layer=dynamic text, frame=1:Line 1: The identifier ‘loadVars’ will not resolve to built-in object ‘LoadVars’ at runtime.  
loadText = new loadVars();  
Total ActionScript Errors: 1 Reported Errors: 1

can anyone possibly tell me why?

thanks in advance,

Sim

---

<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 10, 2004, 5:56pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text/63865/2 "2004-09-10T17:56:39Z")

</div>

Try this tutorial.  
[http://www.kirupa.com/developer/mx/multiple\_dynamictext.htm](http://www.kirupa.com/developer/mx/multiple_dynamictext.htm)

Is the code you are using on a button?

---

<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 10, 2004, 5:58pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text/63865/3 "2004-09-10T17:58:33Z")

</div>

No, its not on a button, its just supposed to load the text when the flash animation runs.

—\> So after i read the error message a few times I decided to change the lowercase l on loadVar to LoadVar and voila, it worked, thanks for the help anyways .

Sim

---

<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 10, 2004, 6:13pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text/63865/4 "2004-09-10T18:13:33Z")

</div>

You create a dynamic text box and enter “intBox” (in your example) in the **VAR** field in the property inspector. I think your problem is that you’re entering it into the “\<Instance name\>”.

If this doesn’t fix it then there’s a problem with importing the textfile.

---

<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 10, 2004, 6:17pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text/63865/5 "2004-09-10T18:17:48Z")

</div>

It’s because you’re using loadVars instead of LoadVars 😉 Flash MX 2004 is case sensitive, unlike FMX.
