MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 298

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 is the index of the item to change.
index
An object that is the new item.
item
Returns
Nothing.
Description
Method; replaces the content of the item at the specified index. This method triggers the
event with the event name
modelChanged
Example
This example replaces the item at index 3 with the item labeled "new label":
myDP.replaceItemAt(3, {label : "new label"});
DataProvider.sortItems()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
myDP.sortItems([compareFunc], [optionsFlag])
Parameters
compareFunc
For details, see
Array.sort()
is optional.
optionsFlag
having to replicate the entire array or resort it repeatedly. This parameter is optional.
The following are possible values for
Array.DESCENDING
Array.CASEINSENSITIVE
Array.NUMERIC
they aren't numbers, use a string comparison (which can be case-insensitive if that flag is
specified).
Array.UNIQUESORT
the array are identical or have identical sort fields.
298
Chapter 6: Components Dictionary
A reference to a function that compares two items to determine their sort order.
in Flash ActionScript Language Reference.This parameter
Lets you perform multiple, different types of sorts on a single array without
optionsFlag
, which sorts highest to lowest.
, which sorts case-insensitively.
, which sorts numerically if the two elements being compared are numbers. If
, which returns an error code (0) instead of a sorted array if two objects in
.
removeItems
:

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