# Maintaining history of all actions

**URL:** <https://forum.kirupa.com/t/maintaining-history-of-all-actions/283195>\
**Category:** flash\
**Created:** [March 3, 2009, 4:28pm UTC](https://forum.kirupa.com/t/maintaining-history-of-all-actions/283195 "2009-03-03T16:28:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaji](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@shaji](https://forum.kirupa.com/u/shaji)\
**Post date:** [March 3, 2009, 4:28pm UTC](https://forum.kirupa.com/t/maintaining-history-of-all-actions/283195/1 "2009-03-03T16:28:51Z")

</div>

Hi,

I am working on a paint application, I am able to draw lines, draw shapes, erase. I need to implement undo and redo functionality. I plan to store history in a bitmap and put it in an array.

My question is whether we can have an alternate solution other using bitmap class. How can I store coordinates of non straight line without using up lot of memory and processor.
