ColdFusion Remoting Problem With Flex Modules
I have recently adapted a new technique for my Modular application development in Flex using the MultiCore framework. This approach further segregates modules from the core, but I have noticed modules constructed with this much independence seems to present a couple of headaches. An odd issue I have stumbled across lately resulted in the following:
TypeError: Error #1034: Type Coercion failed: cannot convert Object@3c118101 to mx.messaging.messages.IMessage. The Flex project is a Shell application with a series of modules with ColdFusion remoting functionality, this error is thrown on a remoting call! The solution is as follows:
I placed the following code in my PrepModelCommand:
1 2 3 4
This was the most suitable location for my project, however Robert (link below) suggests using the main app constructor, where ever works best for you really!
This solution was thanks to Robert Csiki @ this link.