# Loadvars on release problem!

**URL:** https://forum.kirupa.com/t/loadvars-on-release-problem/154648
**Category:** Uncategorized
**Created:** [July 11, 2005, 7:45pm UTC](https://forum.kirupa.com/t/loadvars-on-release-problem/154648 "2005-07-11T19:45:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wickedBoy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/wickedboy/32/1100_2.png) [@wickedBoy](https://forum.kirupa.com/u/wickedBoy)
#### Post date: [July 11, 2005, 7:45pm UTC](https://forum.kirupa.com/t/loadvars-on-release-problem/154648/1 "2005-07-11T19:45:26Z")

</div>

I have a number of dynamic txt fields embedded inside a few MCs and I’m trying to load text into them from an external txt file. The first part of the code works fine…but not when I try to load the txt on release, then no text appears…does anyone know how I could solve this problem, please?  
On the frame:

```auto
myData = new LoadVars();
myData .load("anastasio2.txt");
//creating the loadVarsText function
myData .onLoad = function() {

//this is were it fails

aa.text = this.aa1;
aaa.text = this.aaa1;
ab.text = this.ab1;
}; 
_root.aa._visible = false;
_root.aaa._visible = false;
_root.ab._visible = false;
_root.answer4._visible = false;
_root.answer5._visible = false;

```

```auto

On the button:
//show me the goods
on(release){
	_root.aa._visible=!aa._visible
}

```

**and finally inside the txt:**  
aa1=cool  
&aaa1=man  
&ab1=luke

Help!
