flashx.undoIOperation IOperation defines the interface for operations that can be undone and redone. IOperation defines the interface for operations that can be undone and redone. performRedo Reperforms the operation. Reperforms the operation.

The operation is also responsible for pushing itself onto the undo stack.

performUndo Reverses the operation. Reverses the operation.

The operation is also responsible for pushing itself onto the redo stack.

UndoManager The UndoManager class manages the history of editing operations on a text flow so that these operations can be undone and redone.flashx.undo:IUndoManagerObject The UndoManager class manages the history of editing operations on a text flow so that these operations can be undone and redone.

The undo manager maintains two stacks of IOperation objects. When a reversible operation is executed, it is placed on the undo stack. If that operation is undone, it is removed from the undo stack, reversed, and placed on the redo stack. Likewise, if that operation is then redone, it is removed from the redo stack, re-executed, and then placed onto the undo stack again. If another operation is executed first, the redo stack is cleared.

If the TextFlow is modified directly (not via calls to the edit manager, but directly via calls to the managed FlowElement objects), then the edit manager clears the undo stack to prevent the stack from getting out of sync with the current state.

flashx.textLayout.edit.EditManagerUndoManager Creates an UndoManager object. Creates an UndoManager object. canRedo Boolean true, if there is an operation on the redo stack that can be redone. Otherwise, false. canUndo Boolean true, if there is an operation on the undo stack that can be reversed. Otherwise, false. clearAll clearRedo peekRedo flashx.undo:IOperationThe redoable IOperation object, or null, if no redoable operation is on the stack. peekUndo flashx.undo:IOperationThe undoable IOperation object, or null, if no undoable operation is on the stack. popRedo flashx.undo:IOperationThe redoable IOperation object, or null, if no redoable operation is on the stack. popUndo flashx.undo:IOperationThe undoable IOperation object, or null, if no undoable operation is on the stack. pushRedo operationflashx.undo:IOperation pushUndo operationflashx.undo:IOperation redo flashx.textLayout.edit.IEditManager.redo()undo flashx.textLayout.edit.IEditManager.undo()undoAndRedoItemLimit The maximum number of undoable or redoable operations to track.
IUndoManager IUndoManager defines the interface for managing the undo and redo stacks. IUndoManager defines the interface for managing the undo and redo stacks.

An undo manager maintains a stack of operations that can be undone and redone.

canRedo Indicates whether there is currently an operation that can be redone.Boolean true, if there is an operation on the redo stack that can be redone. Otherwise, false. Indicates whether there is currently an operation that can be redone. canUndo Indicates whether there is currently an operation that can be undone.Boolean true, if there is an operation on the undo stack that can be reversed. Otherwise, false. Indicates whether there is currently an operation that can be undone. clearAll Clears both the undo and the redo histories. Clears both the undo and the redo histories. clearRedo Clears the redo stack. Clears the redo stack. peekRedo Returns the next operation to be redone.The redoable IOperation object, or null, if no redoable operation is on the stack. flashx.undo:IOperation Returns the next operation to be redone. peekUndo Returns the next operation to be undone.The undoable IOperation object, or null, if no undoable operation is on the stack. flashx.undo:IOperation Returns the next operation to be undone. popRedo Removes the next operation to be redone from the redo stack, and returns it.The redoable IOperation object, or null, if no redoable operation is on the stack. flashx.undo:IOperation Removes the next operation to be redone from the redo stack, and returns it. popUndo Removes the next operation to be undone from the undo stack, and returns it.The undoable IOperation object, or null, if no undoable operation is on the stack. flashx.undo:IOperation Removes the next operation to be undone from the undo stack, and returns it. pushRedo Adds a redoable operation to the redo stack.operationflashx.undo:IOperation Adds a redoable operation to the redo stack. pushUndo Adds an undoable operation to the undo stack.operationflashx.undo:IOperation Adds an undoable operation to the undo stack. redo Removes the next IOperation object from the redo stack and calls the performRedo() function of that object. Removes the next IOperation object from the redo stack and calls the performRedo() function of that object. flashx.textLayout.edit.IEditManager.redo()flashx.undo.IUndoManager.canRedo()flashx.undo.IUndoManager.clearRedo()flashx.undo.IUndoManager.peekRedo()flashx.undo.IUndoManager.pushRedo()flashx.undo.IUndoManager.popRedo()undo Removes the next IOperation object from the undo stack and calls the performUndo() function of that object. Removes the next IOperation object from the undo stack and calls the performUndo() function of that object. flashx.textLayout.edit.IEditManager.undo()flashx.undo.IUndoManager.canUndo()flashx.undo.IUndoManager.clearUndo()flashx.undo.IUndoManager.peekUndo()flashx.undo.IUndoManager.pushUndo()flashx.undo.IUndoManager.popUndo()undoAndRedoItemLimit The maximum number of undoable or redoable operations to track. The maximum number of undoable or redoable operations to track.

To disable the undo function, set this value to 0.