MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 261

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

Advertisement

DataGrid.addItem()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDataGrid.addItem(item)
Parameters
An instance of an object to be added to the grid.
item
Returns
A reference to the instance that was added.
Description
Method; adds an item to the end of the grid (after the last item index).
Note: This differs from the
Example
The following example adds a new object to the grid
var anObject= {name:"Jim!!", age:30};
myGrid.addItem(anObject);
DataGrid.addItemAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDataGrid.addItemAt(index, item)
Parameters
The index position (among the child nodes) at which the node should be added. The
index
first position is 0.
A string that displays the node.
item
Returns
A reference to the object instance that was added.
Description
Method; adds an item to the grid at the position specified.
method in that an object is passed rather than a string.
List.addItem()
:
myGrid
DataGrid component (Flash Professional only)
261

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?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents