reset method
Resets the action. This method can be chained.
This method sets paused to false, page:.enabled enabled
to true, time to 0
, interrupts any scheduled fading and
warping, and removes the internal loop count and scheduling for delayed
starting.
Note: .reset
is always called by stop, but .reset
doesn’t
call .stop
itself. This means: If you want both, resetting and stopping,
don’t call .reset
; call .stop
instead.
Implementation
AnimationAction reset() {
paused = false;
enabled = true;
time = 0; // restart clip
_loopCount = -1; // forget previous loops
_startTime = null; // forget scheduling
return stopFading().stopWarping();
}