# What is the best way to do this?

**URL:** <https://forum.kirupa.com/t/what-is-the-best-way-to-do-this/186937>\
**Category:** flash\
**Created:** [April 25, 2006, 2:07pm UTC](https://forum.kirupa.com/t/what-is-the-best-way-to-do-this/186937 "2006-04-25T14:07:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcem](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@dcem](https://forum.kirupa.com/u/dcem)\
**Post date:** [April 25, 2006, 2:07pm UTC](https://forum.kirupa.com/t/what-is-the-best-way-to-do-this/186937/1 "2006-04-25T14:07:24Z")

</div>

i want to draw approx 40 curves using the draw method. but i want them to each draw one after the other, not at the same time. i then want them to dissapear one at a time. what is the best way to do this?

---

<div class="post-metadata">

**Author:** ![B\_L\_U\_E](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@B\_L\_U\_E](https://forum.kirupa.com/u/B_L_U_E)\
**Post date:** [April 25, 2006, 4:19pm UTC](https://forum.kirupa.com/t/what-is-the-best-way-to-do-this/186937/2 "2006-04-25T16:19:41Z")

</div>

probably setInterval

---

<div class="post-metadata">

**Author:** ![Anatoly](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/anatoly/32/1694_2.png) [@Anatoly](https://forum.kirupa.com/u/Anatoly)\
**Post date:** [April 25, 2006, 4:25pm UTC](https://forum.kirupa.com/t/what-is-the-best-way-to-do-this/186937/3 "2006-04-25T16:25:52Z")

</div>

create a function that draws each curve na dste an interval that executes it.

```auto

function drawingCurves () {
// insert ur drawing assets here
}
intervalId = setInterval (this, "drawingCurves", 500);
// with 500 being the interval in milliseconds

```

Hope it helps 🙂

---

<div class="post-metadata">

**Author:** ![dcem](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@dcem](https://forum.kirupa.com/u/dcem)\
**Post date:** [April 26, 2006, 6:55am UTC](https://forum.kirupa.com/t/what-is-the-best-way-to-do-this/186937/4 "2006-04-26T06:55:06Z")

</div>

my problem actually lies in clearing the curves, when i use clear() it clears all the curves. how can i avoid this?

---

<div class="post-metadata">

**Author:** ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Post date:** [April 26, 2006, 7:33am UTC](https://forum.kirupa.com/t/what-is-the-best-way-to-do-this/186937/5 "2006-04-26T07:33:10Z")

</div>

You’ll have to create a movie clip for each curve and remove them sequentially.
