Flash Remoting is more like RMI - Remote Method Invocation - or RPC - Remote Procedure Call - in that you can only invoke methods, not access data members. That's because you don't really have a copy of the CFC in Flash - you have a proxy that contains references to methods.

On Wednesday, Jul 30, 2003, at 21:12 US/Pacific, Scott Barnes wrote:

Heyas

I am just wondering if its actually possible to use a "factory" style approach with Flash Remoting.

eg:
factory.cfc
<cfcomponent>
��� this.navigation = createObject("component","path.to.navigtion.controllerCFC");
��� this.blah = createObject("component","path.to.blah.controllerCFC");
</cfcomponent>

navigation.controller.cfc
<cfcomponent>
�����<cffunction name="getTopNav" access="remote">
������� <cfreturn true>
������</cffunction>
</cfcomponent>


Then In ActionScript (Client) I want to have:

gatewayPackage = gatewayConnection.getService('appname.factory', new Result());
gatewayPackage.navigation.getTopNav();�
Flash MX doesn't return an error, but it doesn't return data either. Is this feasible? or do I have to use a callMethod("path","method","param1","param2") style approach instead?


Scott Barnes
Snr Developer
eCommerce Department
Tourism Queensland
/ Sunlover Holidays
[EMAIL PROTECTED]
ph: (07) 3535 5066



Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

Reply via email to