# Best way to send variables from php to flash?

**URL:** https://forum.kirupa.com/t/best-way-to-send-variables-from-php-to-flash/202799
**Category:** Uncategorized
**Created:** [October 4, 2006, 11:21pm UTC](https://forum.kirupa.com/t/best-way-to-send-variables-from-php-to-flash/202799 "2006-10-04T23:21:48Z")
**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, 11:21pm UTC](https://forum.kirupa.com/t/best-way-to-send-variables-from-php-to-flash/202799/1 "2006-10-04T23:21:48Z")

</div>

Hi… can anyone please tell me the best way to load multiple variables from a php flile into flash?? I have been trying with no luck… I’m printing them from the php like this:

```php
print "mx=$movx&my=$movy&bg=$bgC";

```

and them impor them to flash using this code:

```auto
loadRemote.onRelease = function() {
    mData = new LoadVars();
    mData.load("load.php");
    movingX = mData.mx;
    movingY = mData.my ;
    bgColor = mData.bg;
    if (mData.mox != undefined) {
        this.preview(4);
        alert.msg.text = "working!";
    } else {
        alert.msg.text = "load error!!";
    }
};

```

–  
-rJr-
