MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 250

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

The view consists of three main parts:
Row
This is a view object responsible for rendering the items of the grid by laying out cells. Each
row is laid out horizontally below the previous one.
Column
Columns are fields that are displayed in the grid; the fields each correspond to the
property of each column.
Each column is a view object (an instance of the DataGridColumn class) responsible for
displaying each column—for example, width, color, size, and so on.
There are three ways to add columns to a data grid: assign a DataProvider object to
DataGrid.dataProvider
item), set
DataGrid.columnNames
constructor for the DataGridColumn class to create columns and call
to add them to the grid.
To format columns, either set up style properties for the entire data grid, or define
DataGridColumn objects, set up their style formats individually, and add them to the
data grid.
Cell
This is a view object responsible for rendering the individual fields of each item. To
communicate with the data grid, these components must implement the CellRenderer API
(see
"CellRenderer API" on page
TextField object.
DataGrid parameters
You can set the following authoring parameters for each DataGrid component instance in the
Property inspector or in the Component inspector:
multipleSelection
or not (
). The default value is
false
rowHeight
indicates the height of each row, in pixels. Changing the font size does not change the
row height. The default value is 20.
editable
is a Boolean value that indicates whether the grid is editable (
default value is
false
You can write ActionScript to control these and additional options for the DataGrid component
using its properties, methods, and events. For more information, see
Professional only)" on page
250
Chapter 6: Components Dictionary
(this automatically generates a column for each field in the first
to specify which fields will be displayed, or use the
145). For a basic data grid, a cell is a built-in ActionScript
is a Boolean value that indicates whether multiple items can be selected (
false
.
254.
.
columnName
DataGrid.addColumn()
) or not (
). The
true
false
"DataGrid class (Flash
)
true

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents