Sets the duration of an Animation, in
milliseconds (thousandths of a second). Default is 1000.
Setting a duration overrides any previously set duration, including
one defined by setFrames().
To retrieve the percentage complete that the Animation is, use
currentPercentage(). |