/
CommandEvent.as
36 lines (32 loc) · 992 Bytes
/
CommandEvent.as
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package org.robotlegs.utilities.undoablecommand
{
import flash.events.Event;
import org.robotlegs.utilities.undoablecommand.interfaces.IUndoableCommand;
/**
* CommandEvents occur when commands finish executing or undoing
*
*/
public class CommandEvent extends Event
{
/**
* Defines the value of the type property of an executeComplete event object.
*/
public static const EXECUTE_COMPLETE:String = "executeComplete";
/**
* Defines the value of the type property of an undoExecuteComplete event object.
*/
public static const UNDO_EXECUTE_COMPLETE:String = "undoExecuteComplete";
/**
* The command associated with the event
*/
public var command:IUndoableCommand;
/**
* @param type The type of event
* @param command The command associated with the event
*/
public function CommandEvent(type:String, command:IUndoableCommand) {
super(type, false, false);
this.command = command;
}
}
}