# Pause actionscript for x seconds

**URL:** https://forum.kirupa.com/t/pause-actionscript-for-x-seconds/265294
**Category:** flash
**Created:** [July 7, 2008, 2:56pm UTC](https://forum.kirupa.com/t/pause-actionscript-for-x-seconds/265294 "2008-07-07T14:56:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![LapisInfernalis](https://avatars.discourse-cdn.com/v4/letter/l/e79b87/32.png) [@LapisInfernalis](https://forum.kirupa.com/u/LapisInfernalis)
#### Post date: [July 7, 2008, 2:56pm UTC](https://forum.kirupa.com/t/pause-actionscript-for-x-seconds/265294/1 "2008-07-07T14:56:00Z")

</div>

Hi everyone!

Is there a way to pause actionscript for some seconds? I do not mean to pause the playback on the timeline, only the actionscript.

Something like this:

```auto
on(rollOver) {
 _root.starten.gotoAndPlay(2);
}
on(rollOut) {
 _root.starten.gotoAndPlay(13);
 
}
on(release) {
 fscommand("Exec", "start_server.exe");
 fscommand("Exec", "start_mysql.exe");
 
 <-- INSERT 5 second pause here -->
 
 mSystem.openDocument("[http://localhost/](http://localhost/dtk_pm)");
}

```

Thank you very much in advance!

LapisInfernalis

---

<div class="post-metadata">

### Author: ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)
#### Post date: [July 7, 2008, 3:01pm UTC](https://forum.kirupa.com/t/pause-actionscript-for-x-seconds/265294/2 "2008-07-07T15:01:01Z")

</div>

You would have to separate that second half of your on(release) into a function, then call that that using a setTimeout where you have your INSERT text
