Show
Ignore:
Timestamp:
12/19/07 03:30:38 (13 months ago)
Author:
gyuque
Message:

lang/legacy-actionscript/as2draw: handled pen buttons.

Files:
1 modified

Legend:

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

    r3276 r3300  
    1515        private function buildToolPalette(tp:ToolPalette) 
    1616        { 
     17                var _this = this; 
     18                var closure = function(b){_this.pushedPenButton(b);}; 
     19                 
    1720                var p1:PenButton = new PenButton(3); 
    1821                tp.addButton(p1); 
     22                p1.afterPush = closure; 
    1923 
    2024                var p2:PenButton = new PenButton(8); 
    2125                tp.addButton(p2); 
     26                p2.afterPush = closure; 
    2227 
    2328                var p3:PenButton = new PenButton(16); 
    2429                tp.addButton(p3); 
     30                p3.afterPush = closure; 
     31        } 
     32         
     33        private function pushedPenButton(aButton:PenButton) 
     34        { 
     35                 
    2536        } 
    2637