An iterator that can be used by playable items to track repeat play.
This utility is used by SequenceBase to provide a looping option for
Sequence and SequenceCA. When creating your own Go utilities you can
make use of Repeater, which provides a next() iterator and a skipTo helper.
currentCycle:uint [read-only]
Current cycle starting at 0, which will continue to increase
up to cycles or indefinitely if cycles is set to
Repeater.INFINITE (zero).
Implementation
public function get currentCycle():uint
cycles:uint [read-write]
Number of times the Repeater will iterate, which can be set to
zero or Repeater.INFINITE for indefinite repeating.
Implementation
public function get cycles():uint
public function set cycles(value:uint):void
done:Boolean [read-only]
True if cycles is not infinite and currentCycle has reached cycles.
Implementation
public function get done():Boolean
public function Repeater(cycles:uint = 1)Parameters
| cycles:uint (default = 1) |
public static const INFINITE:uint = 0
Makes code more human-readable, like new Repeater(Repeater.INFINITE);