Adobe FLEX 2 - CREATING AND EXTENDING COMPONENTS Manual page 4

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

Advertisement

About reusable MXML components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Working with events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
About interfaces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114
121
About ActionScript components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121
Adding properties and methods to a component . . . . . . . . . . . . . . . . . 125
Defining events in ActionScript components . . . . . . . . . . . . . . . . . . . . 140
Applying styles to custom components . . . . . . . . . . . . . . . . . . . . . . . . . 144
ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
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
Chapter 11: Creating Custom Style Properties . . . . . . . . . . . . . . 183
About styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
Example: Creating style properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
Chapter 12: Creating Template Components . . . . . . . . . . . . . . . 195
About template components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
Implementing a template component . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
Chapter 13: Creating Custom Formatters . . . . . . . . . . . . . . . . . 207
Creating a custom formatter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
Using the SwitchSymbolFormatter class. . . . . . . . . . . . . . . . . . . . . . . . .211
Extending a Formatter class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
4
Contents

Advertisement

Table of Contents
loading

Table of Contents