Open GoogleCodeExporter opened 8 years ago
Browser Mozilla Firefox 16.0.1
Original comment by Johann.N...@googlemail.com
on 29 Oct 2012 at 9:45
I have found in asdraw project - but now Graphics.drawPath is undefined
Original comment by Johann.N...@googlemail.com
on 30 Oct 2012 at 9:49
wrote my own
public function drawPath( graphics : Graphics ) : void {
var j : int = 0;
for( var i : int = 0; i < commands.length; i++ ) {
switch( commands[i] ) {
case GraphicsPathCommand.CURVE_TO:
graphics.curveTo( data[j], data[j+1], data[j+2], data[j+3] );
j+=4;
break;
case GraphicsPathCommand.LINE_TO:
graphics.lineTo( data[j], data[j+1] );
j+=2;
break;
case GraphicsPathCommand.MOVE_TO:
graphics.moveTo( data[j], data[j+1] );
j+=2;
break;
case GraphicsPathCommand.WIDE_LINE_TO:
graphics.lineTo( data[j], data[j+1] );
j+=4;
break;
case GraphicsPathCommand.WIDE_MOVE_TO:
graphics.moveTo( data[j], data[j+1] );
j+=4;
break;
}
}
}
Original comment by Johann.N...@googlemail.com
on 30 Oct 2012 at 11:49
Original issue reported on code.google.com by
Johann.N...@googlemail.com
on 29 Oct 2012 at 9:43