# AS2 - playing animations depending on what mc's are onstage

**URL:** <https://forum.kirupa.com/t/as2-playing-animations-depending-on-what-mcs-are-onstage/318381>\
**Category:** flash\
**Created:** [January 18, 2011, 5:07pm UTC](https://forum.kirupa.com/t/as2-playing-animations-depending-on-what-mcs-are-onstage/318381 "2011-01-18T17:07:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skarab](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@Skarab](https://forum.kirupa.com/u/Skarab)\
**Post date:** [January 18, 2011, 5:07pm UTC](https://forum.kirupa.com/t/as2-playing-animations-depending-on-what-mcs-are-onstage/318381/1 "2011-01-18T17:07:47Z")

</div>

Im building an interactive courtroom exhibit which has seven thumbnails along the bottom of the screen that can be dragged up to load a larger image of each into three possible positions above. Once in position, an “Assemble” button plays one of five possible animations, depending on what elements have been dragged.

I need to figure out a way to program which animation plays when its elements are onstage and I am stumped. Im thinking of using an if-else statement but I dont know how to address the loaded images once they have been put in position.

Any suggestions appreciated!
