Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this chapter, you created your first component in ActionScript by extending UIComponent. By overriding the measure() and updateDisplayList() methods, you learned how to extend and implement the default size of a component. You also got a feel for the process of adding child assets to your component’s display list and manipulating the graphics object to programmatically draw content.
You also learned how you can reduce the amount of code within your component by picking the best base component class for your requirements, which culminated in converting the component from ActionScript to MXML. You also were briefly introduced to the differences between the Halo and Spark components when declaring graphical objects.