I am guilty of not reading closely. ;) Yes, public is [supposed to be] more locked down than remote.From read other posts, the behavior you expect to see is what I'd also expect to see.
I'm not sure why you can access a CFC method named "public" from a Flex swf. Stefan Richter wrote: > Sorry I don't understand (more of a Flash/Flex person than CF). > 'Public' appears to be more locked down than 'remote' so if I can > connect to the CFC while it's marked public then why should I need to > change it to remote? > > Regards, > > Stefan > > > > > On 14 Feb 2008, at 17:03, Jeffry Houser wrote: > >> SWF runs on the client, which is not local the server. >> >> Change access to remote. >> >> Stefan Richter wrote: >>> Hello list, >>> I'm running a Flex application locally (served from localhost) and >>> connect to a remoting gateway on a remote server. My CFC on that >>> remote server has a function which looks like this: >>> >>> <cffunction name="getRoles" access="public" returntype="Query"> >>> <cfquery name="roles" datasource="mydsn"> >>> SELECT * FROM roles >>> </cfquery> >>> <cfreturn #roles#> >>> </cffunction> >>> >>> Note access is set to public, which according to the docs makes >>> this function available 'to a locally executing page or component >>> method'. Why then can my SWF running under localhost connect and >>> retrieve the recordset just fine? >>> >>> I know I should be happy that I can hit it (took me long enough to >>> configure SSL remoting...) but I want to secure my application now. >>> >>> thanks, >>> >>> Stefan >> -- Jeffry Houser Flex, ColdFusion, AIR AIM: Reboog711 | Phone: 1-203-379-0773 -- Adobe Community Expert <http://www.adobe.com/communities/experts/members/JeffryHouser.html> My Company: <http://www.dot-com-it.com> My Podcast: <http://www.theflexshow.com> My Blog: <http://www.jeffryhouser.com> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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/Flex/message.cfm/messageid:4937 Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
