@Sanker,
I checked the same scenario with minor changes. You need to use bit more
code to achieve the binding in FlexjS. use following code to achieve correct
binding behavior,
[Bindable] privatevar anyClass:ClassA = new ClassA();
protected function onTextInputChangeA(event:Event):void
{
anyClass.fieldA = myTI1.text;
}
protected function onTextInputChangeB(event:Event):void
{
anyClass.subClass.fieldB = myTI2.text;
}
...
<js:valuesImpl>
<js:SimpleCSSValuesImpl />
</js:valuesImpl>
<js:beads>
<js:ApplicationDataBinding />
</js:beads>
<js:VContainer width="500">
...
<js:TextInput id="myTI1" text="Change Value"
change="onTextInputChangeA(event)"/>
<js:Label id="lbl" text="{anyClass.fieldA}" width="300"/>
</js:VContainer>
<js:VContainer width="500">
--
View this message in context:
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Data-binding-fails-when-following-multiple-references-tp58022p58053.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.