My Flex app is hitting a ColdFusion backend. If I call a function whose
access is set to "remote", everything works as expected. If that remote
function calls a "private" accessible function within the same .cfc
using the "this" keyword, it cannot find the function. If I don't use
the "this" keyword it works fine.
Example:
<cffunction name="function1" access="remote" returntype="boolean">
<cfscript>
//error - cannot find function2 when using 'this' keyword
this.function2();
//this works fine
function2();
</cfscript>
</cffunction>
<cffunction name="function2" access="private" returntype="boolean">
...
</cffunction>
So I already have the fix needed (not using "this" keyword), but I was
wondering if anyone could explain to me why this behaves like this? The
.cfcs are fairly old and I did not write them, but our Flash app that
hits these same .cfc endpoints using Flash Remoting does not see this
behavior.
If anyone could shed some light on this for me I would appreciate it.
Thanks,
Bob Chyko