# Stacking order with fade animation

**URL:** <https://forum.kirupa.com/t/stacking-order-with-fade-animation/310333>\
**Category:** flash\
**Created:** [June 7, 2010, 10:27pm UTC](https://forum.kirupa.com/t/stacking-order-with-fade-animation/310333 "2010-06-07T22:27:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saros](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@saros](https://forum.kirupa.com/u/saros)\
**Post date:** [June 7, 2010, 10:27pm UTC](https://forum.kirupa.com/t/stacking-order-with-fade-animation/310333/1 "2010-06-07T22:27:04Z")

</div>

I’ve been searching the posts and haven’t quite seen what I am looking for.  
I hope someone can help me.  
What I want to do is have 5 movie containers stacked on top of each other in a row with specific order.  
When you click on any of the items, the container in the very front fades and moves to the back.  
Changing the stack order. However, what I want is if you click on the 3rd movie container, the first 2 fades and moves to the back accordingly. I can do it by changing the stack order and setting the alpha but not sure how I can make the first one disappear and than have the second one disappear in order to bring the 3rd container to the front.  
I have a feeling it might be able to solve with arrays …but not sure.  
If anyone can help me out it would be it would be great.  
Thank you in advance.
