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

Components language reference
Table of Contents

Advertisement

Collection.getItemAt()

Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
collection.getItemAt(index)
Parameters
A number that indicates the location of
index
based index, so 0 retrieves the first item, 1 retrieves the second item, and so on.
Returns
An object containing a reference to the specified collection item, or
bounds.
Description
Method; returns an item within the collection by using its index.
Example
The following example calls
//...
var myColl:mx.utils.Collection;
myColl = _parent.thisShelf.MyCompactDiscs;
var myCD = CompactDisc(myColl.getItemAt(0));
if (myCD !=null) {
trace("Retrieved " + myCD.Title);
}
//...
item
:
getItemAt()
within the collection. This is a zero-
if
null
Collection.getItemAt()
is out of
index
151

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