You need to set makeObjectsBindable on your WebService object.

-Josh

On Mon, Aug 25, 2008 at 1:22 PM, rss181919 <[EMAIL PROTECTED]> wrote:

> I have a value object that i cast as an object.
> public var MyObj:Object = new MyObj
> All of the properties of MyObj are bindable.
>
> I have a form item Text input object that is bound to one of the
> properties of MyObj.
> BindingUtils.bindProperty(MyTextInput, 'text', MyObj, 'Prop1');
>
> I have a web service that I need to update MyObj.  In my result
> handler I can set set each of the properties of MyObj directly from
> the result object.  When I do this, the binding work great and the
> MyTextInput text is updated automatically.
>
> The problem is, I would rather simply set the MyObj = event.result
> rather than copying over each individual property.  In testing, I
> find that I can set MyObj = event.result and then access the
> properties as expected.  For example
>
> Alert.show(MyObj.Prop1) //this returns the correct value.
>
> However, the binding to MyTextInput does not fire.  So MyTextInput is
> never updated.
>
> Any thoughts?
>
>
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to