Packageorg.spicefactory.lib.command.util
Classpublic class DelayCommand
InheritanceDelayCommand Inheritance AbstractCancellableCommand Inheritance AbstractAsyncCommand Inheritance flash.events.EventDispatcher

A simple Command implementation that waits for a specified amount of time before signalling its completion.



Public Properties
 PropertyDefined By
 Inheritedactive : Boolean
[read-only] Indicates whether this command is currently executing.
AbstractAsyncCommand
Public Methods
 MethodDefined By
  
DelayCommand(delay:uint)
Creates a new instance.
DelayCommand
 Inherited
cancel():void
Cancels the command.
AbstractCancellableCommand
 Inherited
execute():void
Starts the execution of this command.
AbstractAsyncCommand
Protected Methods
 MethodDefined By
 Inherited
complete(result:Object = null):void
Signals that this command has completed.
AbstractAsyncCommand
 Inherited
doCancel():void
Invoked when this command gets cancelled.
AbstractCancellableCommand
 Inherited
doExecute():void
Invoked when the command starts executing.
AbstractAsyncCommand
 Inherited
error(cause:Object = null):void
Signals an error condition and cancels the command.
AbstractAsyncCommand
Constructor Detail
DelayCommand()Constructor
public function DelayCommand(delay:uint)

Creates a new instance.

Parameters
delay:uint — the amount of time to wait in milliseconds