Easy Undo & Redo in ActionScript

Some weeks ago, I needed to add undo-redo functionality to a project (a photo album editor made with Flex) and here’s what I came up with.

How to use the demo : Click “Add” button & click the grey sprite to add a square. Click “Remove” & select a square to remove it. Click “Rotate” then select a square to rotate it. And so on.

Download

Here’s the source → undo-redo

Enjoy.

Also in this category ...