> Question: Any trick to getting cfproperty to define and > persist a variable (in 'this') with flash remoting? > > I have: > <cfproperty hint="It's bigger than a bread-box" > name="LastError" type="string" default="">
The CFPROPERTY tag is a bit confusing. I think it's used to define metadata, rather than what you'd think of as properties of an object. So, basically, for your purposes it does nothing useful. To create publicly-accessible "properties", just declare variables within your CFCOMPONENT body, before your CFFUNCTION tags, using the scope "this". At least, I think this is how it works - it's a bit confusing, and I'm a bit woozy. Matt or Sean can correct me if I'm wrong. In general, though, you might want to avoid the creation of publicly-accessible variables, and create "methods" using CFFUNCTION instead, to manipulate internal variables. You might also want to check the list archives for the "CFC theory" thread which was running a couple of days ago. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

