Hey guys,
I made a class that makes creating and using AMFPHP services so much easier! It's called AMFPHPManager that allows the creation and use of services to be in one class - so you don't have to import a bunch of stuff. It makes code a lot cleaner too.
You'll have to know how to use AMFPHP to get this to work though.
http://share.quirkworks.net/netquirk...PHPManager.rar
It is used this way:
Code:
import net.quirkworks.utils.AMFPHPManager;
var apm:AMFPHPManager = new AMFPHPManager("localhost");
apm.createPendingCall("SessionMgr", "login", ["Mike", "temp"], this, "handleLogin", "handleFault");
function handleLogin(o:Object)
{
tf.text += "auth: " + o + "\n";
}
function handleFault(o:Object)
{
trace("There was this fault: " + o);
}
The only difference is that handleFunctions don't receive ResultEvents or ResultFaults anymore, because I wanted to pass on globally available data types. That's why I rewrote the RelayResponder to spit out objects instead.