# Getting variables out of a loadvars()

**URL:** https://forum.kirupa.com/t/getting-variables-out-of-a-loadvars/194552
**Category:** flash
**Created:** [July 24, 2006, 3:48pm UTC](https://forum.kirupa.com/t/getting-variables-out-of-a-loadvars/194552 "2006-07-24T15:48:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![paulsheff](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@paulsheff](https://forum.kirupa.com/u/paulsheff)
#### Post date: [July 24, 2006, 3:48pm UTC](https://forum.kirupa.com/t/getting-variables-out-of-a-loadvars/194552/1 "2006-07-24T15:48:41Z")

</div>

Hi

Using a modified version of:

```auto
loadText = new loadVars();
loadText.load("kirupa.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
  scroller.text = this.kirupatext;
};

```

I can get text from a php page into a text box.

However I’m passing a querystring in and while I can send them anywhere to a text box using \_root.textbox1.text = this.var1 etc what I really want to do is make that variable available to the rest of the script, but it just won’t do it, say if I put \_root.var1 = this.var1 or \_global.var1 = this.var1 they remain blank?

Cheers
