Packageorg.goasap.managers
Classpublic class Repeater
SubclassesLinearGoRepeater

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.



Public Properties
 PropertyDefined by
  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).
Repeater
  cycles : uint
Number of times the Repeater will iterate, which can be set to zero or Repeater.INFINITE for indefinite repeating.
Repeater
  done : Boolean
[read-only] True if cycles is not infinite and currentCycle has reached cycles.
Repeater
Public Methods
 MethodDefined by
  
Repeater(cycles:uint = 1)
Repeater
Public Constants
 ConstantDefined by
  INFINITE : uint = 0
[static] Makes code more human-readable, like new Repeater(Repeater.INFINITE);
Repeater
Property detail
currentCycleproperty
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
cyclesproperty 
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
doneproperty 
done:Boolean  [read-only]

True if cycles is not infinite and currentCycle has reached cycles.

Implementation
    public function get done():Boolean
Constructor detail
Repeater()constructor
public function Repeater(cycles:uint = 1)Parameters
cycles:uint (default = 1)
Constant detail
INFINITEconstant
public static const INFINITE:uint = 0

Makes code more human-readable, like new Repeater(Repeater.INFINITE);