I am developing a Flex / Flash application that accesses an ASP.Net/C# server. Is there any way to share the code between them?
The server provides a rather interesting domain model, which the client is intended for maniuplate. Ideally, I would like to be able to define this domain model once and use it for consistency on both sides. I am after all the benefits that come with DRY.
I'm new to Flex, but I had in mind some intermediate language that compiles for both C # and ActionScript.
Update
I currently have a basic REST-style web service that sends XML-serialized versions of objects over the wire to Flex. This works great, but I'm really interested in sharing simple business logic that combines with these objects. There are certain business rules that need to be processed both on the server and on the client, and perhaps I would rather not return to the server for performance reasons.
source share