So I was at work pretty late today. We ran into several flex-related issues, several of which were related to the dreaded “watching a boolean” model. Basically, it seems that flex doesn’t always alert listeners that a bound property has changed. Coupled with my amazingly sparse knowledge of flex, flash and just about everything else Adobe, this made for some fun debugging. We were able to piece things together thanks to three things:
1) Tejus‘ random story some time ago (Appc office, random day) about this phenomena, which I vaguely recalled
2) Some really strange behavior
3) Calvin’s leet global search skills
For the record, this bug sucks. Use binding sparsely since it’s implementation is flaky at best. Also, it wasn’t just on properties of an object but on an object itself, IIRC. Also, we reproduced it in both Flashplayer 9 and 10. All in all, it was actually pretty fun, but it took longer than it should have. Don’t. Watch. Booleans.
0 Response to “Watching a Boolean”