About Creating Advanced Components - Adobe FLEX 2 - CREATING AND EXTENDING COMPONENTS Manual

Creating and extending flex 2 components
Hide thumbs Also See for FLEX 2 - CREATING AND EXTENDING COMPONENTS:
Table of Contents

Advertisement

CHAPTER 10
Creating Advanced Visual
Components in ActionScript
This topic describes the details of creating advanced visual components for use in Adobe Flex
applications. This topic assumes that you are familiar with creating simple ActionScript
components as described in
ActionScript," on page
121.
Contents
About creating advanced components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Implementing the component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
Making components accessible . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
Adding version numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
Best practices when designing a component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Example: Creating a composite component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180

About creating advanced components

Simple visual components are subclasses of existing Flex components that modify the
appearance of the component by using skins or styles, or add new functionality to the
component. For example, you add a new event type to a
styles or skins of a
DataGrid
Visual Components in ActionScript," on page
This topic describes how to create advanced visual components in ActionScript. In advanced
components, you typically perform the following actions:
Modify the visual appearance or visual characteristics of an existing component.
Create a composite component that encapsulates two or more components within it.
Create a component by creating a subclass of the
Chapter 9, "Creating Simple Visual Components in
control. For more information, see
121.
Button
control, or modify the default
Chapter 9, "Creating Simple
UIComponent
class.
1 0
147

Advertisement

Table of Contents
loading

Table of Contents