AS3: History Manager Class

Recently at work I have been building a text editing application to help speed up the process of adding HTML tags to text for Flash. Today I wrote a simple reusable history management class to enable undo/redo on a text field. This is the first version so there may still be some bugs. I also hope to extend it’s functionality to display objects.

The HistoryManager provides any number of undo/redo steps which is set on instanciation – could be limited to 1 step or 100 steps depending on the use,
As well a a typing sensitivity i.e each character could be saved, or blocks of text

Type or copy some text into the example below to test it out. The class file is available at the bottom of the post and all documentation and usage examples are in the file.

Download the above example (Flash CS5)
Download HistoryManager.as


Comments

One response to “AS3: History Manager Class”

  1. […] the last couple of months I have been working on a text editor, for which I made a history manager class that I posted about a little while back. This time as a bit of an experiment/challenge I […]

Leave a Reply