The ViewStack component in the Flex framework operates by setting the visibility on one of its children — the child with index specified by ViewStack.selectedIndex — to true, and the visibility of all the other children to false. It is not difficult to imagine a scenario where ViewStack.selectedIndex is bound to a variable that sometimes [...]
Archive for the 'debug' Category
Flex 2 ViewStack Component Visibility
June 14, 2007Flex 2 / Apollo Memory Leak? Try re-using objects.
June 9, 2007Having problems with excessive memory usage in Flex 2 or Apollo? As long as an object in memory is still referenced, it won’t be deleted. Since there are so many references floating around, especially given binding and effects, it’s easy to think you’ve purged all references to an object when you actually haven’t. [...]
Flex 2 Observer Problems? Make sure the observed variable actually changes.
June 8, 2007If you’re using an Observer in Flex 2, but its handler doesn’t seem to be executing when you’d expect it to, make sure that the variable the Observer watches isn’t getting reset to the same value it already has. In this case, the Observer’s handler function won’t run.
Example: pretend that A and B are [...]
Flex 2 Setter Not Working Right? Use =, not ==!
June 7, 2007I hate those elusive bugs that cause me to spend an hour or more pulling out my hair, only to eventually realize that it was a simple typo all along. Here’s my hot tip for the day: if you’re expecting a setter function in Flex 2 to do something, but that something never happens, [...]