Hi,
sorry for the late reply...
Spring Actionscript doesn't offer a complete MVC/MVP implementation to use since we decided that we don't want to impose any kind of patterns on people's projects.
It is however very easy to create your own implementation using the as3commons-async project (http://www.as3commons.org/as3-common...roduction.html and http://www.as3commons.org/as3-common...roduction.html). A lot of people use presentationmodels in Flex applications, so a common implementation would have views injected with a presentationmodel using SpringAS and then have the presentationmodel use services to connect to a backend.
A service is nothing more than a facade for a couple of, for instance, RemoteObject calls, which can be easily implemented using the RemoteObjectService in as3commons-asyncFlex.
So, as a short example, this is what a service call would basically look like:
Code:
var operation:IOperation = serviceInstance.someRemoteCall();
operation.addCompleteListener(completeHandler);
operation.addErrorListener(errorHandler);
function completeHandler(event:OperationEvent):void {
//so something with event.result
}
function errorHandler(event:OperationEvent):void {
//so something with event.error
}
The service method someRemoteCall() would look a little like this:
Code:
function someRemoteCall():IOperation {
return service.call("someRemoteCall");
}
where service is a RemoteObjectService instance, which can be instantiated like this:
Code:
var service:RemoteObjectService = new RemoteObjectService(new RemoteObject());
Obviously this is greatly simplified, but this is the gist of it.
Naturally you'd use the SpringAS container to configure all of these objects, but I hope this will set you on your way a little.
If you have any questions or problems, feel free to ask.
cheers,
Roland