Wow, sorry about MY long delay. I was out of town.
Are you using remoting 1.0 or 2.0? Just to clarify, you're sure that the
result handler is getting invoked? If you could, please post all the code and
we'll see if we can figure out what's wrong.
Hi,
I'm having the same problem with cfmx 7 and Remoting v2.0 talking to a flash 8
app. The function in the cfc:
<cffunction access="remote" name="checkLogin" output="false"
returntype="struct"
<cfset myStruct = structnew() />
<cfset myStruct["loggedIn"] = 1 />
<cfreturn myStruct />
</cffunction>
In my flash output I'm getting an empty array returned:
12/9 9:34:37 [INFO] : Invoking checkLogin on myApp/securityGateway
12/9 9:34:37 [INFO] : myApp/securityGateway.checkLogin() returned []
Other data types are OK (queries, arrays, strings, etc). I can confirm that
the correct results function is being called.
Thanks.
Frog_Tantrum - 09 Dec 2005 10:13 GMT
As a follow up to this problem, it turns out that data *was* being returned,
but not reported in the 'output' window:
12/9 9:34:37 [INFO] : Invoking checkLogin on myApp/securityGateway
12/9 9:34:37 [INFO] : myApp/securityGateway.checkLogin() returned []
Looking at the NetConnect Debugger however revealed that data was being
returned. I could access the structure members by using:
result.result["loggedIn"] (case sensitive)