We have found the combination of ASP.Net as a server backend and Adobe Flash for the User Interface to be an excellent marriage.
Up until now we have used Javascript as the communication conduit between the two technologies. This has worked well, however we want to be able to pass objects back and forth rather than just string variables and we also want better performance.
There are a number of methods you can use to communicate:
- Javascript
- Web Services (supported properly in MX, not in CS3, not sure about CS4)
- Flash Remoting
- others?
My research has indicated that Flash Remoting is the best performer.
On the server you need to provide a remoting gateway (Flash Remoting ($999 USD), FluorineFx, WebORB, AMF.Net).
What is the best way to use remoting from the client?
The problem lies in that the Flash remoting libraries don't seem to be very good or well supported. They were in MX, not in CS3, not sure about CS4 yet.
Flex apparently has excellent remoting support, however we love the ability to make a freeform UI in flash and not be restricted to Flex Controls. I have seen suggestions of embedding flash swf's in flex - but am reluctant to introduce another layer. I have not used Flex extensively so I may be missing something here.
Has anyone had any experience in this area? Should I try and embed my swf in flex? Or does CS4 provide good enough remoting support?
Thanks.
Bobby - That's a good idea. JSON might do the trick.
Brd6644 - We are already using fluorine on the server. The problem lies in using Flash (NOT Flex) on the client (see above), and Flash's lack of good support for remoting.