Mark I was looking for somthing like that last night at about 2am.  I
found somthing like that at
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Flex/Q_23267099.html
in the guys script.

Mark, I cannot tell you how much thanks I want to give you.

Thank,
timgerr


--- In [email protected], "Mark Piller" <[EMAIL PROTECTED]> wrote:
>
> Hi Tim,
> 
> Glad you figured it out. There's one minor change I would recommend:
> when you call any of the findXXXX methods, you're always getting an
> object (or a collection) back. We tried to simplify the programming
> model, however the async nature of Flex's client/server integration is
> always there. So even though you get back an object out of the find
> calls, initially that object does not have the data. When the client
> receives the data from the server, the same instance WebORB returns to
> you is updated with the data. As a result, it is recommended to make
> sure you actually got the data before you make any changes. Here's how
> you can do it:
> 
> _master = ActiveRecords.Test.findByIdAndName('6','tessa');
> _master.addEventListener( "loaded", gotTest );
> 
> public function gotTest( evt:DynamicLoadEvent ):void
> {
>   var testObj:Test = (evt.data as ArrayCollection)[0] as Test;
>   testObj.Email = "tessa@";
>   testObj.Name = "tessa";
> }
> 
> Cheers,
> Mark
> 
> 


Reply via email to