# Sequenced Events \[MX2004\]

**URL:** <https://forum.kirupa.com/t/sequenced-events-mx2004/169047>\
**Category:** flash\
**Created:** [November 12, 2005, 9:24pm UTC](https://forum.kirupa.com/t/sequenced-events-mx2004/169047 "2005-11-12T21:24:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwopitz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jwopitz/32/1556_2.png) [@jwopitz](https://forum.kirupa.com/u/jwopitz)\
**Post date:** [November 12, 2005, 9:24pm UTC](https://forum.kirupa.com/t/sequenced-events-mx2004/169047/1 "2005-11-12T21:24:42Z")

</div>

Is there a way to store functions in an array so that I can then call the \_array[num] to call the function? The \_array will be sorted that is why I am wanting to call the functions through the array.

DETAILS:  
I am using the Tween class’s onMotionFinished to create a series of events like pan, zoom, fade, etc… Pretty much all GUI stuff. Because the order of the sequence of events will likely change based on user interaction I am not able to hard-code the onMotionFinshed to perform a specific function. So I figure I would store the functions in a function\_array and use a counter var to store the current location in the sequence of events. Or maybe a “pause” & “resume” command inside of a for loop?

Thanks
