Adventures In Flex: Object Inheritance and MXML
Some folks apparently call this Code-Behind. I call it not being a brain-dead moron and using polymorphism (and the rest of OOP’s great ideas) to your advantage. With this, you’ll be able to create specialized classes that fit your needs while cleanly separating the declaration, instantiation, and visual layout of your classes from the functionality provided by the code. It’s exactly like the way using stock components in Flex works, only applied to custom classes.
This is the elegant solution to implementing inheritance with Flex.
