Constructors

Methods

Iterator class

Iterator

 

 

 

Overview

Author

Adobe [http://www.adobe.com]
Ported to AS3 by Matt Przybylski [http://www.reintroducing.com]

Version

1.0

Description

Works in conjunction with a Collection to iterate through its contents.

Constructors

 

Iterator

Usage

public function Iterator($coll:Collection):void

Description

Initialize the Iterator and maintain a link to it's Collection.

Parameters

$coll
Collection to which this Iterator belongs.

Methods

 

hasNext

Usage

public function hasNext():Boolean

Description

Returns true if the iteration has more items.

Returns

Boolean true if iteration has more items.
 

next

Usage

public function next():*

Description

Return the next item in the iteration and increment the cursor. Returns null if the iteration has no more items.

Returns

the next item in the Iteration.