# loadVars and another location

**URL:** <https://forum.kirupa.com/t/loadvars-and-another-location/173057>\
**Category:** flash\
**Created:** [December 20, 2005, 8:28pm UTC](https://forum.kirupa.com/t/loadvars-and-another-location/173057 "2005-12-20T20:28:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vintage](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vintage](https://forum.kirupa.com/u/vintage)\
**Post date:** [December 20, 2005, 8:28pm UTC](https://forum.kirupa.com/t/loadvars-and-another-location/173057/1 "2005-12-20T20:28:21Z")

</div>

I have this piece of code from the flash help

```auto
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {
	if (success) {
		tekst.text = this.toString();
	} else {
		trace("Error loading/parsing LoadVars.");
	}
};
my_lv.load("http://www.helpexamples.com/flash/params.txt");

```

It works perfect if i preview and even when i place this swf in a webserver and look at it true the internet.

Now i want to change the adres so i try this

```auto
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {
	if (success) {
		tekst.text = this.toString();
	} else {
		trace("Error loading/parsing LoadVars.");
	}
};
my_lv.load("http://mrtn.1l.com/notdefined/GuestBook.php?action=read&r="+random(999)+"&NumLow=0");

```

This works well if i preview the movie, BUT NOT when i look at it when de swf is viewed trough the internet.

Can anyone help me with this ?  
Thx for reading (and maybe make a usefull contribution 😛 )
