All right so what I am doing wrong here, I am using the DataMessaging service 
in Coldfusion and everything works. However, I can not seem to return anything 
from the CFC other than the event itself. So for the first one am i not allowed 
to do that? All I want to do is send different information back than what flex 
is sending me. 

This does not work
<cfcomponent output="false">
        <cffunction name="onIncomingMessage" access="remote" 
returntype="struct">
        <cfargument name="event" required="true" type="struct">
        <cfset myStruct=StructNew()>
        <cfset myStruct.test="Hello">
        <cfreturn myStruct>
    </cffunction>
</cfcomponent>
This works. 
<cfcomponent output="false">
        <cffunction name="onIncomingMessage" access="remote" 
returntype="struct">
        <cfargument name="event" required="true" type="struct">
          <cfset myStruct = event.data>
           <cfreturn myStruct>
    </cffunction>
</cfcomponent>


      

Reply via email to