Package | flashx.undo |
Interface | public interface IUndoManager |
Implementors | UndoManager |
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
An undo manager maintains a stack of operations that can be undone and redone.
Property | Defined By | ||
---|---|---|---|
undoAndRedoItemLimit : int
The maximum number of undoable or redoable operations to track. | IUndoManager |
Method | Defined By | ||
---|---|---|---|
Indicates whether there is currently an operation that can be redone. | IUndoManager | ||
Indicates whether there is currently an operation that can be undone. | IUndoManager | ||
Clears both the undo and the redo histories. | IUndoManager | ||
Clears the redo stack. | IUndoManager | ||
Returns the next operation to be redone. | IUndoManager | ||
Returns the next operation to be undone. | IUndoManager | ||
Removes the next operation to be redone from the redo stack, and returns it. | IUndoManager | ||
Removes the next operation to be undone from the undo stack, and returns it. | IUndoManager | ||
Adds a redoable operation to the redo stack. | IUndoManager | ||
Adds an undoable operation to the undo stack. | IUndoManager | ||
Removes the next IOperation object from the redo stack and calls the performRedo()
function of that object. | IUndoManager | ||
Removes the next IOperation object from the undo stack and calls the performUndo()
function of that object. | IUndoManager |
undoAndRedoItemLimit | property |
undoAndRedoItemLimit:int
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
The maximum number of undoable or redoable operations to track.
To disable the undo function, set this value to 0.
Implementation
public function get undoAndRedoItemLimit():int
public function set undoAndRedoItemLimit(value:int):void
canRedo | () | method |
canUndo | () | method |
clearAll | () | method |
public function clearAll():void
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Clears both the undo and the redo histories.
clearRedo | () | method |
public function clearRedo():void
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Clears the redo stack.
peekRedo | () | method |
public function peekRedo():IOperation
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Returns the next operation to be redone.
ReturnsIOperation — The redoable IOperation object, or null , if no redoable operation
is on the stack.
|
peekUndo | () | method |
public function peekUndo():IOperation
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Returns the next operation to be undone.
ReturnsIOperation — The undoable IOperation object, or null , if no undoable operation
is on the stack.
|
popRedo | () | method |
public function popRedo():IOperation
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Removes the next operation to be redone from the redo stack, and returns it.
ReturnsIOperation — The redoable IOperation object, or null , if no redoable operation
is on the stack.
|
popUndo | () | method |
public function popUndo():IOperation
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Removes the next operation to be undone from the undo stack, and returns it.
ReturnsIOperation — The undoable IOperation object, or null , if no undoable operation
is on the stack.
|
pushRedo | () | method |
public function pushRedo(operation:IOperation):void
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Adds a redoable operation to the redo stack.
Parameters
operation:IOperation |
pushUndo | () | method |
public function pushUndo(operation:IOperation):void
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Adds an undoable operation to the undo stack.
Parameters
operation:IOperation |
redo | () | method |
public function redo():void
Removes the next IOperation object from the redo stack and calls the performRedo() function of that object.
Related API Elements
undo | () | method |
public function undo():void
Removes the next IOperation object from the undo stack and calls the performUndo() function of that object.
Related API Elements
Mon Nov 28 2011, 06:48 AM -08:00