MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 309

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

Advertisement

Parameters
A number greater than or equal to 0. This number indicates the position at which to
index
insert the item; it is the index of the new item.
An object containing the data for the item.
item
Returns
A Boolean value indicating whether the item was added:
and
indicates that the item already exists in the data set.
false
Description
Method; adds a new item to the data set at the specified index. Indices greater than the data
provider's length are ignored.
This method triggers the
Example
The following example adds an item to the data set
myDataset.addItemAt(3, {label : "this is the fourth item"});
DataSet.addSort()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
dataSet.addSort(name, fieldList, sortOptions)
Parameters
A string that specifies the name of the sort.
name
An array of strings that specify the field names to sort on.
fieldList
sortOptions
options are used for this sort. Separate multiple values using the bitwise OR operator (
one or more of the following values:
DataSetIterator.Ascending
if none is specified.
DataSetIterator.Descending
properties specified.
DataSetIterator.Unique
DataSetIterator.CaseInsensitive
sort operation. By default, sorts are case-sensitive when the property being sorted on is a string.
modelChanged
One or more of the following integer (constant) values, which indicate what
Sorts items in ascending order. This is the default sort option,
Sorts items in descending order based on item
Prevents the sort if any fields have like values.
indicates that the item was added,
true
event with the event name
myDataSet
Ignores case when comparing two strings during the
DataSet component (Flash Professional only)
.
addItems
at the fourth position:
). Specify
|
309

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