# \[AS\]Call a function after another function ends!

**URL:** https://forum.kirupa.com/t/as-call-a-function-after-another-function-ends/188707
**Category:** flash
**Created:** [May 10, 2006, 8:24am UTC](https://forum.kirupa.com/t/as-call-a-function-after-another-function-ends/188707 "2006-05-10T08:24:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![btibia](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/btibia/32/1625_2.png) [@btibia](https://forum.kirupa.com/u/btibia)
#### Post date: [May 10, 2006, 8:24am UTC](https://forum.kirupa.com/t/as-call-a-function-after-another-function-ends/188707/1 "2006-05-10T08:24:43Z")

</div>

Hi,

I have a question: How i make (if it’s possible to do this) to call a function after another function is finished. I have 4 function:

```auto
 
function tween1 () {
//some tweens
}
function tween2 () {
//some tweens
}
function tween3 () {
//some tweens
}
function tween4 () {
//some tweens
}

```

And i want to play first tween1 and then tween2, when tween2 ends then play tween3 and so on!

It’s this possible?

Thanks, btibia.:mountie:
