[flexcoders] UNDO function

2009-02-18 Thread appuatchi
Hello every1,
  Im working in a project which deals with an application to be
developed in FLEX. There is a canvas on which im able to draw on it.
Now, I should implement an UNDO function which can UNDO the previous
drawings. I tried in many ways but was in vain. Can anyone help me out
with this...


Pradeep



Re: [flexcoders] UNDO function

2009-02-18 Thread Fotis Chatzinikos
How do you draw on the canvas?

What you should do is to add draw commands on a list, the loop this list and
draw on the canvas.

When a user presses undo, you remove the last command from the list and
redraw

On Wed, Feb 18, 2009 at 10:36 AM, appuatchi appuat...@yahoo.co.in wrote:

   Hello every1,
 Im working in a project which deals with an application to be
 developed in FLEX. There is a canvas on which im able to draw on it.
 Now, I should implement an UNDO function which can UNDO the previous
 drawings. I tried in many ways but was in vain. Can anyone help me out
 with this...

 Pradeep

  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,