# Help loading variables into flash!

**URL:** https://forum.kirupa.com/t/help-loading-variables-into-flash/202705
**Category:** Uncategorized
**Created:** [October 4, 2006, 3:11am UTC](https://forum.kirupa.com/t/help-loading-variables-into-flash/202705 "2006-10-04T03:11:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![netrix](https://avatars.discourse-cdn.com/v4/letter/n/f0a364/32.png) [@netrix](https://forum.kirupa.com/u/netrix)
#### Post date: [October 4, 2006, 3:11am UTC](https://forum.kirupa.com/t/help-loading-variables-into-flash/202705/1 "2006-10-04T03:11:55Z")

</div>

Hi everyone… I have been trying to load some variables from a php file into flash but with no luck!!

I’m using this code to print the variables…

```auto
print "mox=$movx&moy=$movy&move=$mov&colored=$colored&resized=$resized&bgColor=$bgColor";

```

and this to try and read them into flash:

```auto
loadRemote.onRelease = function() {
	mData = new LoadVars();
	mData.load("load.php");
	mov.movingX = mData.mox;
	mov.movingY = mData.moy;
	mov.actions.moved = mData.mov;
	mov.actions.resized = mData.resized;
	mov.actions.colored = mData.colored;
	mov.bgColor = mData.bgColor;
	if (mData.mox != undefined) {
		this.preview(4);
		alert.msg.text = "working!";
	} else {
		alert.msg.text = "load error!!";
	}
};

```

can anyone please help me out?!?!

🔗
