RE: [flexcoders] Re: Two way binding

2008-01-02 Thread mark goldin
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of mark goldin > Sent: Wednesday, January 02, 2008 1:34 PM > To: flexcoders@yahoogroups.com > Subject: RE: [flexcoders] Re: Two way binding > > > > Alright. Is the following correct: > > Inside

RE: [flexcoders] Re: Two way binding

2008-01-02 Thread Tracy Spratt
ailto:flexcoders%40yahoogroups.com> ] On > Behalf Of mark goldin > Sent: Wednesday, January 02, 2008 1:34 PM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Subject: RE: [flexcoders] Re: Two way binding > > > > Alright. Is the following correct:

RE: [flexcoders] Re: Two way binding

2008-01-02 Thread Tracy Spratt
s.com Subject: RE: [flexcoders] Re: Two way binding Alright. Is the following correct: Inside of a model I have it nodes bound to form items. In the form I have it items bound to model's nodes, and xmlmodelvar = event.result as XML will pull data into the model as well as show int in the form&

RE: [flexcoders] Re: Two way binding

2008-01-02 Thread mark goldin
Alright. Is the following correct: Inside of a model I have it nodes bound to form items. In the form I have it items bound to model's nodes, and xmlmodelvar = event.result as XML will pull data into the model as well as show int in the form's controls? Tracy Spratt <[EMAIL PROTECTED]> wrote:

RE: [flexcoders] Re: Two way binding

2008-01-02 Thread Tracy Spratt
The simplest is to declare an instance variable typed as XML: var _xmlEmployee:XML; Then assign the event.result as XML in a result handler: _xmlEmployee = event.result as XML; If you want to use the declarative style, do: And in the result handler, do: xmlEmployee = event.result as X

Re: [flexcoders] Re: Two-Way Binding Solutions?

2007-03-26 Thread Kevin
Thanks for you thought on this. Actually the only reason that I need a copy of the object is to achieve the binding from the text field back to the data model. I created a simple function to bind the text field to a data model: private function bindToInput(event:FlexEvent):void{