Tutorials, extensions, and source files for ActionScript, Flash, and other Adobe products.


Random Flex Rant - GUI Validation

Posted May 01, 2009 by senocular

Another thing that throws me off about Flex is the validation system for the GUI. Yes, I understand that you want to defer screen rendering until the end of the frame, but that shouldn't mean that property inspection is all over the place. If I set something, whether or not its updated visually, I should be able to get that value back when I check it immediately afterward.
I've actually been struggling with some scrolling issues for the past 4 hours, and its driving me crazy. It's all coming down to validation and the order of operations for updating the display list. I'm throwing validate() (and invalidate()) calls all over the place and nothing seems to be hitting the right targets. I'll figure it out sooner or later, but it shouldn't be this hard!

And I DESPISE doLater - ever since it first started appearing in the Flash AS components. I don't enjoy GUI flicker and watching interfaces cascade into existence.