# Loadvars from a textfile driving me insane!

**URL:** <https://forum.kirupa.com/t/loadvars-from-a-textfile-driving-me-insane/148378>\
**Category:** Uncategorized\
**Created:** [May 19, 2005, 12:58pm UTC](https://forum.kirupa.com/t/loadvars-from-a-textfile-driving-me-insane/148378 "2005-05-19T12:58:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thewebgremlin](https://avatars.discourse-cdn.com/v4/letter/t/b5e925/32.png) [@thewebgremlin](https://forum.kirupa.com/u/thewebgremlin)\
**Post date:** [May 19, 2005, 12:58pm UTC](https://forum.kirupa.com/t/loadvars-from-a-textfile-driving-me-insane/148378/1 "2005-05-19T12:58:38Z")

</div>

hi there,

i am trying to load vars from a text file into a load vars object.

var kitchentext = new LoadVars();  
kitchentext.load(‘moccastext.txt’);

Once in the object, i thought i could reference them like so

kitchentext.name  
kitchentext.style

but i am having trouble doing this.

i have a textbox called displytext.

\_root.displaytext.text = kitchentext.name;

doesnt work

any ideas, its driving me crazy!!

jamo
