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

Reply via email to