# Side Scrolling + wait command

**URL:** <https://forum.kirupa.com/t/side-scrolling-wait-command/113272>\
**Category:** Uncategorized\
**Created:** [June 16, 2004, 2:11pm UTC](https://forum.kirupa.com/t/side-scrolling-wait-command/113272 "2004-06-16T14:11:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musashi9](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@musashi9](https://forum.kirupa.com/u/musashi9)\
**Post date:** [June 16, 2004, 2:11pm UTC](https://forum.kirupa.com/t/side-scrolling-wait-command/113272/1 "2004-06-16T14:11:38Z")

</div>

Does flash have a wait command?  
i have this code here

```auto
 targ._x = targ._x - 2.500000;
if (targ._x <= -350)
{
targ._x = 344;
} // end if
   
}

```

it scrolls targ from right to left and when targ gets to -350 it restarts by putting targ clip back at 344 (start point)

my Q is does flash have a wait command? because i want to stop the side scrolling when the targ gets to -100 then wait a few seconds the nrestart scrolling

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2004, 2:18pm UTC](https://forum.kirupa.com/t/side-scrolling-wait-command/113272/2 "2004-06-16T14:18:38Z")

</div>

Do a search for setInterval… you can delay the call to a function or action that way.

ghjr
