Using Mate's RemoteObjectInvoker with C# classes

Posted by FigBug on Stack Overflow See other posts from Stack Overflow or by FigBug
Published on 2010-04-13T14:56:33Z Indexed on 2010/04/16 17:23 UTC
Read the original article Hit count: 409

Filed under:
|
|
|
|

I'm using the Mate framework for Flex and communicating with a server running C#. I'm having trouble mapping C# classes to ActopnScript classes. I've got it working fine for simple classes and built in datatypes.

If I have a C# method in my API that returns a API.Foo.Result what name do I use for my RemoteClass alias? Do I need to make a separate ActionScript class for each variation of the API.Foo.Result?

How do I call C# method that takes a class as a parameter? Making an ActionScript class with members with the same names doesn't seem to work.

What is the best way to handle C# classes that contain arrays of objects? The seem to get converted to ArrayCollections of Object. Is there a way to get them converted to an ArrayCollection of my specific class?

© Stack Overflow or respective owner

Related posts about flex

Related posts about c#