DK
Binding seems to take even if local controls haven't been created yet. So if you're double-binding is between a null control and an always-available model locator, the values in the model locator should be corrupted before the control is created.On the other hand, if a local variable is used the double-binding doesn't acually start binding into the model until the local controls are created.Moishe Groger
From: [email protected] [mailto:[email protected]] On Behalf Of Douglas Knudsen
Sent: Thursday, July 06, 2006 11:06 PM
To: [email protected]
Subject: [flexcoders] modellocator and double bindingsOk, before the big hoorah relase of FB 2 and cairngorm2 I had a app
that has a few forms in it bound to a VO hanging out in the
modellocator. I used double bindings to display and update values in
the VO like this
<mx:Binding source="{mymodel.myVO.homeAddress.address1}"
destination="txtAddress1.text" />
<mx:Binding source="{txtAddress1.text}"
destination="mymodel.myVO.homeAddress.address1" />
<mx:TextInput width="100%" id="txtAddress1" />
things worked swell. Then came the update to Flez 2 and cairngorm and
teh above double binding attack bombs. The txtAddrss1 input box is
diplayed empty and gets updated as empty too. Yuk!
THe approach I have found to work is to use a local var as a pointer
and bind to it. wierd. So this works
[Bindable]
localAddy: Address = mymodel.myVO.homeAddress;
<mx:Binding source="{localAddy.address1}" destination="txtAddress1.text" />
<mx:Binding source="{txtAddress1.text}" destination="localAddy.address1" />
<mx:TextInput width="100%" id="txtAddress1" />
Any thoughts?
--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?
--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it? __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

