Archive: Flex
-
Sep 30, 2008
22 CommentsPreventing the TabNavigator from changing tabs when one is clicked.
I recently came across an interesting problem at work with a TabNavigator. The problem we had is that when a user clicked on a tab, we needed to validate some data on the client-side. If the data was valid, then the TabNavigator could proceed with changing tabs. Otherwise, if the data was invalid, an Alert...
-
Sep 20, 2008
4 CommentsFlex’s Data Transfer Pattern (Class Adapters)
We have been having several discussions at MediaRAIN recently about how we should handle data adaptation from the back-end to the Flex front-end. In most cases, our back-end devs are using CakePHP which bases the object model off of the database schema. In many of our projects, we found the Flex front-end guys going back...
-
Jul 30, 2008
9 CommentsCustom Component Implementation
createChildren() When is it called? The createChildren() method is automatically called by Flex whenever the custom component is added to a parent by the call addChild(customComponent). Keep in mind that unlike the other overridden methods in this article, there is no invalidate method associated with it. What is its purpose? To add other child components that the custom component...
-
Jul 30, 2008
1 CommentReverse Mask
In Flex, masking is an easy thing to do. All you need to do is set a display object’s mask property to another display object and you have a mask. However, doing a reverse mask is a bit trickier. A reverse mask is simply the opposite of a mask. If I have an red canvas and I want...