Sunday, January 22, 2012

Transform Tool - undo/redo

Hello! 
Today I'll show you how to implement simple history manager for undo/redo operations. It's very simple example and it doesn't handle changing target of transformation and other user specific operations. For this purpose you need to create something more complex probably using command pattern.
See example below. Press view source context menu to get source code. 

SWC: Transform Tool 2 version 2.4.0.
Source code: Project home page.
ASDoc:  API ASDoc.
Required Flex SDK version: SDK 4.5

5 comments:

  1. Hi Volodymyr ,
    can you provide me the source of the SWC: Transform Tool 2 version 2.4.0. it will be really helpful for me.please get me on my email id: vikash.vikki@gmail.com

    ReplyDelete
    Replies
    1. Project home page here: http://code.google.com/p/transform-tool/
      Source for version 2.4.0 can find in SVN tag here: http://transform-tool.googlecode.com/svn/tags/2.4.0/

      Delete
  2. This is a really great job! But I'm curious if it's possible to use the same technique for multiple objects. As you see the idea is to select multiple objects on canvas and modify them together!

    ReplyDelete
    Replies
    1. I'm currently working on multi selection support.

      Delete
  3. hello Volodymyr Styranivskyy,
    you are good .....
    your multi selection histroy support ready or not?


    ReplyDelete