User Guide
274 DataGrid component (Flash Professional only)
DataGrid.cellFocusIn
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
listenerObject = new Object();
listenerObject.cellFocusIn = function(eventObject){
// Insert your code here.
}
myDataGridInstance.addEventListener("cellFocusIn", listenerObject)
Description
Event; broadcast to all registered listeners when a particular cell receives focus. This event is
broadcast after any previously edited cell’s
editCell and cellFocusOut events are broadcast.
Version 2 components use a dispatcher/listener event model. When a DataGrid component
dispatches a
cellFocusIn event, the event is handled by a function (also called a handler) that
is attached to a listener object (
listenerObject) that you create. You call the
addEventListener() method and pass it the name of the handler as a parameter.
When the event is triggered, it automatically passes an event object (
eventObject) to the
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
DataGrid.cellFocusIn event’s
event object has three additional properties:
columnIndex A number that indicates the index of the target column.
itemIndex A number that indicates the index of the target row.
type The string "cellFocusIn".
For more information, see “EventDispatcher class” on page 499.