topical media & game development
lib-flex-animation-code-10-org-as3lib-kitchensync-action-KSWait.ax
lib-flex-animation-code-10-org-as3lib-kitchensync-action-KSWait.ax
(swf
)
[ flash
]
flex
package org.as3lib.kitchensync.action
{
import org.as3lib.kitchensync.core.*;
Does nothing except wait. Used to delay a sequence.
@since 0.2
author: Mims Wright
public class @ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-KSWait extends AbstractAction
{
override public function set duration(duration:*):void {
throw new Error("duration is ignored for @ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-KSWait");
}
Constructor.
parameter: waitTime Time that the action will wait.
public function @ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-KSWait (waitTime:*):void {
super();
this.delay = waitTime;
}
override public function update(currentTimestamp:Timestamp):void {
if (startTimeHasElapsed) {
if (durationHasElapsed) {
complete();
}
}
}
override public function clone():IAction {
var clone:@ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-KSWait = new @ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-KSWait(_delay);
clone.autoDelete = _autoDelete;
return clone;
}
}
}
(C) Æliens
19/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.