Skip to main content
Participant
September 5, 2009
Question

Undo/Redo

  • September 5, 2009
  • 2 replies
  • 670 views

Hi..


How to implement undo/redo functionality?

Actually I have a painting canvas in flash in AS3.0.

For it I need UNDO/REDO functionality as user draws.


Any Clue.


Thanks.

This topic has been closed for replies.

2 replies

September 5, 2009

For something like painting you will need to store the mouse movements and such into an array, then you can use that array as your undo/redo stack. When you undo - you can stick that item onto the redo array... something like that. Shouldn't be too hard to implement.

Inspiring
September 5, 2009

It depends on what definition of undo/redo is in your application.