|
I’ll forward your thanks on to
Basil, Paul, et. al. :) Hmm, it is supposed to work at the operation
level too… since it is a boolean property and can’t be undefined or
null it tries to keep track of whether it was set locally or whether it has to
check with its parent service for its setting. The default is true at any
level. Pete From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr First of all I would like to thank Pete and the Flex team
for what is probably the best data binding implementation I've seen anywhere.
I love the open event-based structure of it that has enabled me to hook into it
to create some very cool change-tracking utilities. Again Thank You! I was also curious as to what the makeObjectBindable
property on the <mx:operation> element is for? It does not seem to
allow me to enable/disable this feature on a per-operation bases. I've
tried setting it to false on the WebService and arrays come in as arrays
as expected. However if it set it only in the operation and leave it
default on the webservice they come in as array collections. Am I
missing something? - Kelly From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Farland The “data binding” feature in MXML works through a
system event types and handlers. When a property changes it notifies listeners
(who registered event handlers) that it a property has changed. Data binding
allows you to link two values so that if one changes, the other is informed
about it and changes its value too (and with a little more code you can get the
other way to work too for two-way binding). However, the intrinsic types Object and Array from ActionScript are
not inherently bindable as they don’t report change events. A wrapper
class like ObjectProxy class attempts provide these change events for you but
also appears as if it were the underlying wrapped instance through the magic of
flash.utils.Proxy (which allows it to intercept all operations on an
object… except, unfortunately, getQualifiedClassName and describeType, so
you can’t hide its class name). The equivalent wrapper for Array is
mx.collection.ArrayCollection (although this has a multitude of other uses too). The fact that it didn’t work in your case below is curious… Pete From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf
Of ben.clinkinbeard Thanks
Peter, setting makeObjectsBindable to false worked like a -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- [flexcoders] Re: Flex 2 final release - Change in parsing... ben.clinkinbeard
- RE: [flexcoders] Re: Flex 2 final release - Change i... Peter Farland
- RE: [flexcoders] Re: Flex 2 final release - Change i... Peter Farland

