# Externally loaded content just one number

**URL:** https://forum.kirupa.com/t/externally-loaded-content-just-one-number/302047
**Category:** Uncategorized
**Created:** [December 20, 2009, 10:40pm UTC](https://forum.kirupa.com/t/externally-loaded-content-just-one-number/302047 "2009-12-20T22:40:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![livinzlife](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@livinzlife](https://forum.kirupa.com/u/livinzlife)
#### Post date: [December 20, 2009, 10:40pm UTC](https://forum.kirupa.com/t/externally-loaded-content-just-one-number/302047/1 "2009-12-20T22:40:07Z")

</div>

Here is my as2

```auto
homeText = new LoadVars();
homeText.onLoad = function(success) {
 if (success) {
     RanNum = Math.ceil(Math.random()*6);
     ran = this["quote"+1];
     _root.contentMain.home_txt.text = ran;
     var sizing:Number = this["size"];
     _root.contentMain.home_txt._height = sizing;
     }
 else {
     _root.contentMain.home_txt.text = "The text failed to load due to an error";
 }
}

homeText.load("hometext.txt");

```

Here is my external file

```auto
quote1=Sushi is one of my favorite foods but I rarely eat it.Sushi is one of my favorite foods but I rarely eat it&size=400

```

Why does this:

```auto
 var sizing:Number = this["size"];
     _root.contentMain.home_txt._height = sizing;

```

not make the text box 400 pixels in height.

If I just put

```auto
 _root.contentMain.home_txt._height = 400;

```

it works, but I need to be able to change that number externally in that text file.

Thanks in advance this is driving me crazy.
