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

lang/legacy-actionscript/as2draw: use color index

Files:
1 modified

Legend:

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

    r3462 r3465  
    4747                        for (var i:Number = 0;i < l;i++) 
    4848                        { 
    49                                 var cb:ColorButton = new ColorButton(DEFAULT_COLORS[i]); 
     49                                var cb:ColorButton = new ColorButton(DEFAULT_COLORS[i], i); 
    5050                                tp.addButton(cb); 
    5151 
     
    9797                mSelectedColorButton.setSelected(true); 
    9898 
    99                 mDrawable.getCurrentPen().color = aButton.getColor(); 
     99                mDrawable.getCurrentPen().color       = aButton.getColor(); 
     100                mDrawable.getCurrentPen().color_index = aButton.getIndex(); 
    100101        } 
    101102