I have a cfc in the application scope initiated on application start <cfset application.myImage = createObject("component","mycfcs.ImageStuff")>
I can then access the methods/functions like so: (Z returns a boolean indicating weather the image was successfully rotated) <cfset z = application.myImage.rotateImage(argumentCollection = "#arguments#")> I am trying to dynamically pass the cfc name and function like so: <cfset myname = "myImage"> <cfset mymethod = "rotateImage"> Here I am just passing in the cfc name and it works: <cfset z = application[myname].rotateImage(argumentCollection = "#arguments#")> The problem is I cannot find a way to pass in the function name...something like this..which does not work: <cfset z = application[myname].[mymethod](argumentCollection = "#arguments#")> which gives an error: "Invalid CFML construct". any suggestions appreciated, thanks, Andrew Grosset. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298669 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4