# Simple Question

**URL:** <https://forum.kirupa.com/t/simple-question/127755>\
**Category:** Uncategorized\
**Created:** [November 5, 2004, 9:31pm UTC](https://forum.kirupa.com/t/simple-question/127755 "2004-11-05T21:31:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glitch](https://avatars.discourse-cdn.com/v4/letter/g/0ea827/32.png) [@Glitch](https://forum.kirupa.com/u/Glitch)\
**Post date:** [November 5, 2004, 9:31pm UTC](https://forum.kirupa.com/t/simple-question/127755/1 "2004-11-05T21:31:56Z")

</div>

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.

```php

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);
};

```
