> When writing Flash Remoting CFC's I have to set the the 
> function access to "remote"
> 
> eg: <cffunction name="blah" access="remote" returnType="boolean"  
> output="false">
> 
> It seems to me that these have differences in how they behave 
> from normal functions in cfcs. For example, if I put an init 
> function into it and set this.example = 4, and then in another 
> function attempt to call this.example it will say it's undefined.
> 
> Is there any good explanation online in the differences between  
> remote functions, and is there anyway to have any sort of "state" 
> to a flash remoting cfc or are you forced to refresh all data at 
> each call?

It sounds to me like you've found all the explanation there is - with web
services, there is no state between service calls unless you explicitly
build it yourself. There are a couple of approaches you can take - you can
use CF's state management which relies on cookies by default, or you can
build a login or initialization service, which sends the client a token
which the client would then send to any other service calls it makes.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212770
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to