I hope I am correct on this one, but I think the problem is the Object does not implement the IEventDispatcher Interface thus you can't do binding with an object. So maybe that is why? ----- Original Message ----- From: rss181919 To: [email protected] Sent: Sunday, August 24, 2008 10:22 PM Subject: [flexcoders] Help with binding (flex 3)
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?

