AMFConnection

So here it is, my very simple but useful way to communicate and AMF Server. What did I do? well I just mimicked the way any other XML Call would be.

The API is very simple, an example of it’s usage:

// used packages

import net.oztoc.remoteobject.AMFConnection;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;

// create the AMF service

var service:AMFConnection = new AMFConnection();

// set Service’s AMF variables
service.gateway = “http://www.acatl.net:3000/rubyamf_gateway”;
service.remoteClass = “Sessions”;
service.method = “userLogin”;

// add event listeners
service.addEventListener(ResultEvent.RESULT, onResult );
service.addEventListener(FaultEvent.FAULT, onRespond );

// send the data to the server
service.send({user:”acatl”, passwrd:”mypasswrd”});

For more info:

http://www.oztoc.net

Google code URL:

http://code.google.com/p/oztoc/source/browse/trunk/oztoc/src/net/oztoc/remoteobject/AMFConnection.as