About Actionscript 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 9
9
Creating Simple Visual
Components in ActionScript
You define custom ActionScript components to extend the Adobe Flex component library.
For example, you can create a customized Button, Tree, or
DataGrid
component as an
ActionScript component.
This topic describes how to create simple visual components in ActionScript, and includes
examples of creating components that extend the Flex component hierarchy. For information
on creating advanced components in ActionScript, see
Chapter 10, "Creating Advanced
Visual Components in ActionScript," on page
147.
Contents
About ActionScript components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121
Adding properties and methods to a component . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Defining events in ActionScript components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Applying styles to custom components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144

About ActionScript components

You create reusable components by using ActionScript, and reference these components in
your Flex applications as MXML tags. Components created in ActionScript can contain
graphical elements, define custom business logic, or extend existing Flex components.
121

Advertisement

Table of Contents
loading

Table of Contents