Expand my Community achievements bar.

Implementing makeObjectBindable

Avatar

Level 1
I'm currently using Flex 2 with Fluorine. Because of this i
have to use a custom Remote Object, however this doesn't implement
makeObjectsBindable, so all arrays are returned as Arrays instead
of ArrayCollections.



I was just wondering if anyone from Adobe would be able to
tell me how makeObjectsBindable is implemented, and how i could
implement it in my custom RemoteObject? as the source to the rpc
classes are not available.



Many thanks



Matt



2 Replies

Avatar

Level 3
Hi,



If you want to make it bindable, your remoteobject's
lastResult, event.result should be marked as [Bindable], the
returned array you can wrap it with ArrayCollection. ( return new
ArrayCollection(yourArray)



William Chan

Avatar

Level 1
The problem is i have nested arrays in the returned object,
so the object istelf isn't and Array, rather one of it's properties
is, so it is this that i need to be an ArrayCollection.



Matt