Collection.contains() - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Example
The following example calls
on (click) {
import CompactDisc;
var myColl:mx.utils.Collection;
myColl = _parent.thisShelf.MyCompactDiscs;
myCD = new CompactDisc();
myCD.Artist = "John Coltrane";
myCD.Title = "Giant Steps";
var wasAdded:Boolean = myColl.addItem(myCD);
}

Collection.contains()

Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
collection.contains(item)
Parameters
The object whose presence in the collection is to be tested.
item
Returns
A Boolean value of
true
Description
Method; indicates whether the collection contains the specified item. For Flash to consider
the objects as equal, they must refer to the same object. If
Collection.contains()
:
addItem()
if the collection contains
returns
, even if the object's properties are all equal.
false
.
item
is a different object,
item
Collection.contains()
149

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

This manual is also suitable for:

Flash 8

Table of Contents