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!