Changeset 3462 for lang/legacy-actionscript
- Timestamp:
- 12/23/07 04:07:06 (5 years ago)
- Location:
- lang/legacy-actionscript/as2draw
- Files:
-
- 1 added
- 6 modified
-
AS2Draw.as (modified) (1 diff)
-
AS2Draw.swf (modified) (previous)
-
Drawable.as (modified) (2 diffs)
-
MovieClipStack.as (modified) (1 diff)
-
PixelBuffer.as (modified) (2 diffs)
-
ToolPalette.as (modified) (1 diff)
-
UndoButton.as (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/legacy-actionscript/as2draw/AS2Draw.as
r3382 r3462 59 59 pushedColorButton(defaultColor); 60 60 } 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(); 61 74 } 62 75 -
lang/legacy-actionscript/as2draw/Drawable.as
r3460 r3462 41 41 } 42 42 43 public function setY(y:Number) 43 public function setY(y:Number):Void 44 44 { 45 45 mMC._y = y; 46 } 47 48 public function removeTopLayer():Void 49 { 50 mMStack.pop(); 46 51 } 47 52 … … 104 109 */ 105 110 g.stackData.log.push(new LineData(x1+dx, y1+dy, x2+dx, y2+dy, color)); 106 drawPixBufferLine(x1+dx, y1+dy, x2+dx, y2+dy, color);107 111 drawNativeLine(g, x1+dx, y1+dy, x2+dx, y2+dy, color); 108 112 } -
lang/legacy-actionscript/as2draw/MovieClipStack.as
r3382 r3462 48 48 { 49 49 var ln = arr[i]; 50 renderer.drawPixBufferLine(ln.x1, ln.y1, ln.x2, ln.y2, ln.color); 50 51 renderer.drawNativeLine(g, ln.x1, ln.y1, ln.x2, ln.y2, ln.color); 51 52 } -
lang/legacy-actionscript/as2draw/PixelBuffer.as
r3460 r3462 142 142 if(dx > dy) 143 143 { 144 E = dx /2;144 E = dx>>1; 145 145 if (x2 < x1) 146 146 { … … 181 181 else 182 182 { 183 E = dy /2;183 E = dy>>1; 184 184 if (y2 < y1) 185 185 { -
lang/legacy-actionscript/as2draw/ToolPalette.as
r3302 r3462 48 48 var v:MovieClip = aBtn.createView(mMC, mItems.length+1); 49 49 50 v._x = mNextLeft; 51 mNextLeft += aBtn.buttonWidth; 50 if (!alignRight) { 51 v._x = mNextLeft; 52 mNextLeft += aBtn.buttonWidth; 53 } 54 else { 55 v._x = mNextRight - aBtn.buttonWidth; 56 mNextRight -= aBtn.buttonWidth; 57 } 52 58 53 59 mItems.push(aBtn);
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)