# Very new beginner with depth problem, probably very easy to crack - please help?

**URL:** <https://forum.kirupa.com/t/very-new-beginner-with-depth-problem-probably-very-easy-to-crack-please-help/303010>\
**Category:** Uncategorized\
**Created:** [January 12, 2010, 12:36pm UTC](https://forum.kirupa.com/t/very-new-beginner-with-depth-problem-probably-very-easy-to-crack-please-help/303010 "2010-01-12T12:36:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxirc](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@Maxirc](https://forum.kirupa.com/u/Maxirc)\
**Post date:** [January 12, 2010, 12:36pm UTC](https://forum.kirupa.com/t/very-new-beginner-with-depth-problem-probably-very-easy-to-crack-please-help/303010/1 "2010-01-12T12:36:34Z")

</div>

Hi!

I am new to Flash and have been learning the very basics from Adobe TV and other such places. I am try to make my own interactive movie based on what I have learnt and have encountered problems that thus far I have been able to figure out (Kirupa being a great help) - but now i’m stumped. I hope you can figure out what i’m trying to do from the code but my problem is that when i play the movie clip 'optionPanel.optionAnim.blueAnim.play(); it is behind other movies on the optionPanel,optionAnim! I have looked at trying to setChildIndex but am not sure if I have to define what the Child is?

My code is very simple:

//register button  
controlPanel.animation.openPanel.addEventListener(MouseEvent.CLICK, openPanel);  
controlPanel.animation.option1.addEventListener(MouseEvent.CLICK, openOption);  
controlPanel.animation.zoomBusiness.addEventListener(MouseEvent.CLICK, zoomBusiness);  
controlPanel.animation.zoomBlue.addEventListener(MouseEvent.CLICK, zoomBlue);  
optionPanel.optionAnim.closeOption1.addEventListener(MouseEvent.CLICK, closeOption);

//to front

//functions  
function openPanel(event:MouseEvent):void  
{  
controlPanel.play();  
}

function openOption(event:MouseEvent):void  
{  
optionPanel.play();  
}

function closeOption(event:MouseEvent):void  
{  
optionPanel.play();  
}

function zoomBusiness(event:MouseEvent):void  
{  
optionPanel.optionAnim.orangeAnim.play();  
}

function zoomBlue(event:MouseEvent):void  
{  
optionPanel.optionAnim.blueAnim.play();  
}

All help is much appreciated 🙂 THANKS!
