RemoteObjectAMF0 update - makeObjectsBindable

As more people are using the RemoteObjectAMF0 the component receives some updates. The update is in regards to the “makeObjectsBindable” attribute that is present on Flex RPC service components.

I used the HTTPService’s makeObjectsBindable documentation to implemented a part of what makeObjectsBindable might do.

If makeObjectsBindable is true then the Array will be wrapped in an ArrayCollection.

Now you can bind the result straight to dataProvider value like:

PLAIN TEXT

ACTIONSCRIPT:

  1. [Bindable]

  2. [ArrayElementType("com.renaun.samples.login.vo.BookVO")]

  3. private var books:ArrayCollection;

  4.  

  5. books = ArrayCollection( event.result );

  6. // instead of

  7. books = new ArrayCollection( ArrayUtil.toArray( event.result ) );

You’ll find the source and example changes in the here.

Leave a Reply