royale-asjs icon indicating copy to clipboard operation
royale-asjs copied to clipboard

fx:Binding of variables (non-property) throws exception

Open estanglerbm opened this issue 4 years ago • 0 comments

Using variables (non-property) in fx:Binding causes exception on JS side. (SWF is fine, and compiling in Flex is fine.)

It looks like properties and functions and xml and other things are expected in fx:Binding on the JS side, but not directly using variables like Boolean or String or int.

(Based on other testing) In org.apache.royale.binding.DataBindingBase.decodeWatcher(), type = 5 for the problem bindings.

If you use only one of the labels, the problem doesn't show up. But with the two labels, plus the fx:Binding, then watchers.length == 3, and the last watcher has null bindings.

See attached example; exception thrown during load on JS side. If you use the commented-out sections (which use properties), instead, then it loads fine TestFXBindingNonProperty.mxml.txt .

estanglerbm avatar Oct 31 '21 10:10 estanglerbm