Ok, 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?


--
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/
 



Reply via email to