Hi, Jamie. Using a code like as follows, you can change the data in the object.
<mx:TextInput id="customerIdInput" text="{objSample.customerId}" /> <mx:Binding source="customerIdInput.text" destination="objSample.customerId" /> In this sample, you can change the data[customerId] in the object [objSample] in realtime whenever you edit the TextInput [customerIdInput]. Paul. --- In flexcoders@yahoogroups.com, "jamiebadman" <[EMAIL PROTECTED]> wrote: > Hi, > > Probably a simple question ;-) > > I have an object, elements of which are bound to on-screen > components - for example, edit boxes. > > A call to the database populated the object - and I then see the > data appear in the on-screen components. > > This is fine! > > But what I want to be able to do is change the data in the edit box > and have the change reflected back in the object, so I can then > write the change back to the database. > > This doesn't seem to work for me - when I examine the content of the > object just before the DB write, it has the original data in it, not > the changed data. > > I've tried setting up a 2-way bind but that didn't make any > difference... > > This seems to me like something very fundamental and something which > should easily work but I'm having no joy. Am I trying to do this the > wrong way, missing something or... ?! > > Thanks, > > Jamie. > > P.S. Thanks to Markus Ansamaa for the 'fix' on my print problem - > works an absolute treat. ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/