Show
Ignore:
Timestamp:
12/23/07 04:07:06 (13 months ago)
Author:
gyuque
Message:

lang/legacy-actionscript/as2draw: added undo button.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/legacy-actionscript/as2draw/AS2Draw.as

    r3382 r3462  
    5959                                pushedColorButton(defaultColor); 
    6060                } 
     61                 
     62                { 
     63                        var ub:UndoButton = new UndoButton(); 
     64                        ub.buttonAlign = true; 
     65                        tp.addButton(ub); 
     66                         
     67                        ub.afterPush = function() {_this.pushedUndoButton();}; 
     68                } 
     69        } 
     70         
     71        private function pushedUndoButton() 
     72        { 
     73                mDrawable.removeTopLayer(); 
    6174        } 
    6275