RemoteObjectAMF0 update – makeObjectsBindable

Posted on October 17, 2006 | 1 comment

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:

[Bindable]
[ArrayElementType("com.renaun.samples.login.vo.BookVO")]
private var books:ArrayCollection;

books = ArrayCollection( event.result );
// instead of
books = new ArrayCollection( ArrayUtil.toArray( event.result ) );

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

  • http://riaevolution.com luchyx

    Hi Erickson,!
    I wondering if your class RemoteObjectAMF0 support the new version of cairngorm.?

    I’m getting the error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at com.renaun.rpc::ResponderAMF0/::onQueryFault().

    The class is excellent!,
    Thanks.