# LoadVars and dynamically created textfield

**URL:** <https://forum.kirupa.com/t/loadvars-and-dynamically-created-textfield/141629>\
**Category:** Uncategorized\
**Created:** [March 21, 2005, 11:08pm UTC](https://forum.kirupa.com/t/loadvars-and-dynamically-created-textfield/141629 "2005-03-21T23:08:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darth](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@darth](https://forum.kirupa.com/u/darth)\
**Post date:** [March 21, 2005, 11:08pm UTC](https://forum.kirupa.com/t/loadvars-and-dynamically-created-textfield/141629/1 "2005-03-21T23:08:27Z")

</div>

I have no idea how to address a string from loadvars object to a dynamically created textfiled, please help!

my code looks like this so far -

```auto
 

_root.din_fmt = new TextFormat();
_root.din_fmt.size = 10;
_root.din_fmt.font = "DIN";
this.createTextField("info_txt", 1, 0, 0, 460, 10);
this.info_txt.text = "Loading..."; // text displaying fine
this.info_txt.embedFonts = true;
this.info_txt.setTextFormat(_root.din_fmt);
this.info_txt.autoSize = true;
this.info_txt.background = true;
this.info_txt.backgroundColor = 0xFFFFA6;
this.my_lv = new LoadVars();
this.my_lv.load("http://domain.com/text.php?id="+this.somevar);
this.my_lv.onLoad = function(success) {
 if (success) {

trace(my_lv.text) //works fine
  info_txt.text = my_lv.text // empties textfield !?
 } else {
  trace("error");
 }
};

```
