![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
To make component construction easier, you can subclass any class; you are not required to extend the UIObject or UIComponent class directly. If you extend any other component's class, you extend these classes by default. Any component class listed in the Component dictionary can be extended to create a new component class.
Flash includes a group of classes that draw on the screen and inherit from UIObject. For example, the Border class draws borders around other objects. Another example is RectBorder, which is a subclass of Border and knows how to resize its visual elements appropriately. All components that support borders should use one of the border classes or one of the border subclasses. For a detailed description of these classes, see Components Dictionary.
For example, if you want to create a component that behaves almost exactly the same as a Button component does, you can extend the Button class instead of recreating all the functionality of the Button class from the base classes.
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |