Possible Duplicate:
How to implement Undo and Redo feature in as3
I am going to create an application in that i have to implement an Undo and Redo feature.
In the application there will be multiple objects located on stage and user can customize
the position of the objects. But when user clicks on Undo the object go back to their default
position and after clicking on redo object will move on the new position.
So my question is how can i apply these feature in my application?
Is there any library or any third party classes?
Can some one help me?
Thanks in advance.
This seemed like a fun exercise. The following tracks start and end coordinates of display objects, supports undo/redo and destroys redo actions when a new movement is made. It’s probably a bit simple and restrictive for your needs, but could be easily extended by adding to the VO.
HistoryVO:
HistoryManager:
Example document class: