Array from PHP to Flash

[LEFT]I’m trying to send an array ($pathArray) from a PHP file (pathFinder.php) to an swf (pathFinder.swf). This is the (relevant) code I have so far…
**

pathFinder.swf**
mc_search.onRelease = function(){
var dataSenderLoad:LoadVars = new LoadVars();
var dataReceiverLoad:LoadVars = new LoadVars();

    dataSenderLoad.startNode = startNode;
    dataSenderLoad.endNode = endNode;
    
    dataSenderLoad.sendAndLoad("pathFinder.php", dataReceiverLoad, "POST");
    
    dataReceiverLoad.onLoad = function(){
        thePath = "";
        for (var c:Number = 0; c <= this.pathArray.length - 1; c++){
            thePath += this.pathArray[c];
            if (c < this.pathArray.length - 1){
                thePath += ", ";
            }
        }
    }

}

pathFinder.php
$pathArray = “pathArray=[”;
for ($c = 0; $c <= sizeof($bestPathTravelled) - 1; $c++){
$pathArray .= $bestPathTravelled[$c];
if ($c < sizeof($bestPathTravelled) - 1){
$pathArray .= ", ";
}
$pathArray .= “]”;
echo $pathArray;

I could successfully send an integer from the PHP to the SWF, so I think the problem is just with the PHP array syntax. Could anyone help me get this working correctly? I’ve been looking over this for quite some time now, and it is becoming very frustrating as it is such a simple task. Also, I have one other question. When I was sending an integer from the PHP to the SWF, although it worked properly and the variable was displayed in the flash file, there was still a transferring message at the bottom of the browser. I don’t think it ever went away. How can I stop this?? Thanks in advance for any help.

the url, not sure if it’s relevant, but just in case
http://www.hartleyspotatochips.com/pathFinder/pathFinder.html
[/LEFT]