If you bind a variable to some component’s property by just adding [Bindable] metatag above it you may notice that component’s property changes when variable changes but it doesn’t work in the opposite direction. So what to do in order to achieve to way data binding? » Read more: Two way data binding
Posts Tagged ‘data binding’
Two way data binding
September 23rd, 2011How to disable databinding warnings?
July 14th, 2011Sometimes when you put a variable into MXML tag you get a warning: “Data binding will not be able to detect assignments to …”. You can get rid of it by making your variable bindable but what if you are completly sure that the variable will not change and you don’t want to make it bindable?
In order to turn off all annoying warnings at once you can add the following code to your compiler options:
-show-binding-warnings="false"
The second solution is to add the following tag:
[Bindable("__NoChangeEvent__")]
before each variable you don’t want to be bindable and to be source of the warning.