Simple Question

Just wondering why flash slows down while drawing API(?) Is there a way to avoid it from slowing down. Heres just a random script of what i mean.


createEmptyMovieClip("lines", 1);
_root.lines.onEnterFrame = function() {
	x++;
	this._x = 200-math.cos(i++/15)*x/5;
	this._y = 100-math.sin(i++/15)*x/5;
	this.lineStyle(1, random(10000));
	this.moveTo(this._x, this._y);
	this.lineTo(math.cos(x/15)*200, math.sin(x/15)*200);
};