RemoteObjectAMF0 update - makeObjectsBindable

October 17th, 2006

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:

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.

Entry Filed under: Adobe Flex, Flex,AMF,PHP, Rich Internet Applications

1 Comment Add your own

  • 1. luchyx  |  2006-10-30 at 10.33 pm

    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.

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Disclaimer: I work as a Flash/Flex Developer for Adobe Systems Incorporated. The opinions expressed here represent my own and not those of my employer.

My Amazon.com Wish List

Calendar

October 2006
S M T W T F S
« Sep   Nov »
1234567
891011121314
15161718192021
22232425262728
293031  

Most Recent Posts


Flex.org - The Directory for Flex