# Delaying execution of multiple functions

**URL:** <https://forum.kirupa.com/t/delaying-execution-of-multiple-functions/307470>\
**Category:** flash\
**Created:** [April 4, 2010, 3:28am UTC](https://forum.kirupa.com/t/delaying-execution-of-multiple-functions/307470 "2010-04-04T03:28:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dada78](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@dada78](https://forum.kirupa.com/u/dada78)\
**Post date:** [April 4, 2010, 3:28am UTC](https://forum.kirupa.com/t/delaying-execution-of-multiple-functions/307470/1 "2010-04-04T03:28:19Z")

</div>

Hi,

I have 3 functions that I need to execute delayed by x seconds.

For instance on my first frame I have:

```auto
//Panel1Frame1
function panel1End() {
panel1.gotoAndPlay("out");
}

//Panel2Frame1
function panel2End() {
panel2.gotoAndPlay("out2");
}

//Panel3Frame1
function panel3End() {
panel3.gotoAndPlay("out3");
}

setTimeout(panel1End,1000); 
setTimeout(panel2End,3000);  
setTimeout(panel3End,6000);  

```

However, this doesn’t seem to be working. ;-(  
Only the first function seems to be executing, that’s it.

Not sure if there is a better way to do this?

Thanks for your help,  
Dada
