Changeset 3303
- Timestamp:
- 12/19/07 04:37:44 (13 months ago)
- Location:
- lang/legacy-actionscript/as2draw
- Files:
-
- 2 modified
-
AS2Draw.as (modified) (3 diffs)
-
AS2Draw.swf (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
lang/legacy-actionscript/as2draw/AS2Draw.as
r3302 r3303 6 6 private var mSelectedColorButton:ColorButton; 7 7 public var DEFAULT_COLORS:Array = [0xffffff, 0xdddddd, 0x888888, 0x000000, 0xf04433, 0xffaf98, 0x80c090]; 8 public var DEFAULT_COLOR_INDEX = 3; 8 9 9 10 public function AS2Draw(aRoot:MovieClip) … … 43 44 var l = DEFAULT_COLORS.length; 44 45 var closure = function(b){_this.pushedColorButton(b);}; 46 var defaultColor:ColorButton; 45 47 for (var i:Number = 0;i < l;i++) 46 48 { … … 49 51 50 52 cb.afterPush = closure; 53 54 if (DEFAULT_COLOR_INDEX == i) 55 defaultColor = cb; 51 56 } 57 58 if (defaultColor) 59 pushedColorButton(defaultColor); 52 60 } 53 61 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)