That part I do get. ;)

With Flex you can define true accessor methods like so:

function get property() : returnType{ 
// your statements here 
}

function get property() : returnType{ 
// your statements here 
}

I would assume that rather than using the CFML functions in the CFC, the cfproperty tags are used to map get/set methods on the actual result object that's passed back thru the gateway.

Since the gateway maps CF types to AS3 types, the returnType value in the accessor method would be based on 2 things: the mapping the gateway provides and the values in the cfproperty tags. Putting all this together, it looks like the CF types are pretty well ignored in lieu of the gateway's mapping and the types specified by cfproperty tags.

Laterz,
J


------------------------------------------------

Jared C. Rypka-Hauer

Continuum Media Group LLC

http://www.web-relevant.com

Member, Team Macromedia - ColdFusion


"That which does not kill me makes me stranger." - Yonah Schmeidler






On Mar 25, 2006, at 12:33 PM, Doug Hughes wrote:

So, what about the data typing of getters/setters on records?  Wouldn’t flex
have issues with the fact that they're all string values?  Or should the
cfproperty tags define the correct types?

Doug

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
Of Sean Corfield
Sent: Saturday, March 25, 2006 1:21 PM
Subject: Re: [Reactor For CF] Reactor and Flex Data Services

On 3/24/06, João Fernandes <[EMAIL PROTECTED]> wrote:
maybe it can't because AS3 is expecting with getters and setters you'll
update a private variable wich Reactor behavior is different, you update
your To inside the Record (right Sean?).

No, it doesn't matter. As long as the actual CFC that you're passing
back and forth to AS has <cfproperty/> tags and matching get/set
methods, it does not matter what those methods actually do.

My comment about record objects was that the translator (from AS on
inbound calls) would not know how to correctly create the record
objects - because only Reactor knows how. On the other hand, anyone
can easily create the TO objects so they are likely more suitable for
use with FDS (as you have discovered and as Simeon indicated).
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood



-- Reactor for ColdFusion Mailing List -- [email protected]





-- Reactor for ColdFusion Mailing List -- [email protected]



Reply via email to