Flash XML to PHP
php

Download Files
Version 1.0 (2007-12-04)

This PHP Script assists you to send and recieve XML from Flash.

It allows you to make requests and send parameters using the xml.sendAndLoad function in Flash, and act apon them in PHP.
Flow Chart Example

sample.

In Flash:

// In Your Flash Project. Send the XML message. 
var sendXML:XML = new XML('<message library="pressconnect">'+
                            '<call callFunction="getPost" postID="xyz"/>'+
                          '</message>');
var receivedXML:XML = new XML();
receivedXML.onLoad = onLoadHandler;

sendXML.sendAndLoad('xmlListener.php', receivedXML);

function onLoadHandler(success)
{
	trace(this); 
}

In PHP:
// This is a quick example, more code is provided in the download...
$callFunction = getXMLAttribute('callFunction', $xml->call);

switch($callFunction)
{

    case 'getPost':
        // Returns Specified Post 
        getPost(getXMLAttribute('postID', $xml->call));
        break;
}

The Download comes with a sample php framework and a flash project to test with.