1

I Develop a software that is based on Microsoft's .NET framework and is written with C#, our interface is developed on Adobe Flash Platform.

The Big issue is that the communication between them is very poor, as far as we know we can only send Strings to each other.

Is there any way that it could send other DATA Types like an Array as long as flash dont need to parse it and do a cast to Array it will be an upgrade.

Considering that we send trough this little bridge a XML with like 4000 lines we really need to upgrade this pipeline.

PS: JSON is not in our plans for very simple reasons, its ultra new at flash platform and we don't want to force our users to upgrade their activeX players to the very last version.

2 Answers2

1

You may want to take a look at Fluorine FX. We are using that to send entire .NET objects from .NET to Flex.

Jason Towne
  • 8,014
  • 5
  • 54
  • 69
  • Thank you Jason, it was something exactly like that we were looking for. we're going to build a prototype with Fluorine, thanks in advance! – Conrado Souza Jan 10 '12 at 22:10
0

Can't you tell from the C# side whether the player has JSON support or not, and decide the format then?

If you have to resort to a custom format (if it's not XML and not JSON, you need to implement it yourself), you might as well settle with JSON - just implement the decoder.

zmbq
  • 38,013
  • 14
  • 101
  • 171
  • tests with non-native JSON decoders were already made and they performs poorly when compared to native XML parser, actually we can check the player version to tooggle between JSON and XML but we use a WCF service that consumes a PROCEDURE from a SQL Server, and this WCF application is shared by a big number of products, so changing the output to JSON isn't that simple. – Conrado Souza Jan 10 '12 at 18:27
  • You need to convert he WCF-resulting XML to *something*. Where's the bottleneck? – zmbq Jan 10 '12 at 18:48
  • So anywhere in .NET Environment is easy to change data types, but don't matter how my WCF outputs, the bottleneck is when we're communicating with the ShockWave object, where the only known input way is a plain String. – Conrado Souza Jan 10 '12 at 19:43