Hello,
I am currently working on a simple line drawing flash movie. Only I
would like to normalize or reduce the points
of the path/line. Does anyone have a good suggestion how this can be done?
I am storing all the x,y coordinates in array: drawingPoints.push(
{x:this._mousex, y:this._mousey} );
Because I am storing the x,y coordinates of the mouse in the
mousemove-event I have a lot of coordinates
which aren't really needed. I would like to delete these points which
aren't really need to draw the line.
var pointCount = this.drawingPoints.length;
var i = 0;
while( i < pointCount ) {
this.lineTo( this.drawingPoints[i].x,
this.drawingPoints[i].y );
}
Yours,
Weyert de Boer
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders