MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 292

Components language reference
Table of Contents

Advertisement

Usage
listenerObject = new Object();
listenerObject.headerRelease = function(eventObject){
// Insert your code here.
}
myDataGridInstance.addEventListener("headerRelease", listenerObject)
Description
Event; broadcast to all registered listeners when a column header has been released. You can
use this event with the
automatic sorting and to let you sort as you like.
Version 2 components use a dispatcher/listener event model. When the DataGrid component
dispatches a
headerRelease
that is attached to a listener object (
addEventListener()
When the event is triggered, it automatically passes an event object (
handler. Each event object has properties that contain information about the event. You can
use these properties to write code that handles the event. The
event's event object has two additional properties:
A number that indicates the index of the target column.
columnIndex
The string
type
"headerRelease"
For more information, see
Example
In the following example, a handler called
grid.addEventListener()
handler in the
headerRelease
broadcast, a
statement is sent to the Output panel.
trace
var myListener = new Object();
myListener.headerRelease = function(event) {
trace("column " + event.columnIndex + " header was pressed");
};
grid.addEventListener("headerRelease", myListener);
290
DataGrid component (Flash Professional only)
DataGridColumn.sortOnHeaderRelease
event, the event is handled by a function (also called a handler)
listenerObject
method and pass it the name of the handler as a parameter.
.
"EventDispatcher class" on page
myListener
as the second parameter. The event object is captured by the
eventObject
property to prevent
) that you create. You call the
DataGrid.headerRelease
499.
is defined and passed to
parameter. When the
) to the
eventObject
event is
headerRelease

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents