Say I have this:

// MyForm.mxml
[Bindable]
public var foo:String;

<mx:Bindable source="foo" destination="myText.text"/>
<mx:Bindable source="myText.text" destination="foo"/>

<mx:TextInput id="myText"/>

Is there an elegant way to avoid that foo is cleared upon creation of MyForm?
Indeed, if I do this in the main app:

var mf:MyForm = new MyForm();
mf.foo = "bar";
addChild(mf);

then myText is empty, probably because it's empty content is first assigned to 
foo due to the second binding.
The real problem I'm trying to solve is to use the same value object to show 
data to the user and to receive his/her changes.

Of course it works if I use two vos: say voIn and voOut, binding them 
accordingly.

Any ideas?

Enri

Reply via email to