Card depth help

I have this piece which contains some interactivity. It’s 8 cards, 4 on top and 4 on the bottom. You hover over each card and it flips over to revel information about the image that is on the front. However, when the card is flipped over it does not flip over on top of it’s neighbours so the card information sits below the depth of the other cards. What code would I use to set the depth of each card to be above the other when it’s flipped over?

[as]
stop();

import fl.transitions.easing.*;

import flashandmath.as3.TweenFlipCS4;

var card1:TweenFlipCS4;

var card2:TweenFlipCS4;

var card3:TweenFlipCS4;

var card4:TweenFlipCS4;

var card5:TweenFlipCS4;

var card6:TweenFlipCS4;

var card7:TweenFlipCS4;

var card8:TweenFlipCS4;

card1=new TweenFlipCS4(“images/turtleimage.jpg”,“images/turtlecard.jpg”,“horizontal”);

this.addChild(card1);

card2=new TweenFlipCS4(“images/dogimage.jpg”,“images/sharkcard.jpg”,“horizontal”);

this.addChild(card2);

card3=new TweenFlipCS4(“images/dogimage.jpg”,“images/mousecard.jpg”,“horizontal”);

this.addChild(card3);

card4=new TweenFlipCS4(“images/dogimage.jpg”,“images/dogcard.jpg”,“horizontal”);

this.addChild(card4);

card5=new TweenFlipCS4(“images/dogimage.jpg”,“images/giraffecard.jpg”,“horizontal”);

this.addChild(card5);

card6=new TweenFlipCS4(“images/dogimage.jpg”,“images/monkeycard.jpg”,“horizontal”);

this.addChild(card6);

card7=new TweenFlipCS4(“images/dogimage.jpg”,“images/eaglecard.jpg”,“horizontal”);

this.addChild(card7);

card8=new TweenFlipCS4(“images/dogimage.jpg”,“images/lioncard.jpg”,“horizontal”);

this.addChild(card8);

setCardsPosAndProps();

function setCardsPosAndProps():void {

card1.x=10;
card1.y=77;

card2.x=150;
card2.y=77;

card3.x=290;
card3.y=77;

card4.x=435;
card4.y=77;

card5.x=10;
card5.y=200;

card6.x=150;
card6.y=200;

card7.x=290;
card7.y=200;

card8.x=435;
card8.y=200;

card1.setFunc(Back.easeOut);
card1.setSpeed(2);
               
card2.setFunc(Back.easeOut);
card2.setSpeed(2);

card3.setFunc(Back.easeOut);
card3.setSpeed(2);

card4.setFunc(Back.easeOut);
card4.setSpeed(2);

card5.setFunc(Back.easeOut);
card5.setSpeed(2);
               
card6.setFunc(Back.easeOut);
card6.setSpeed(2);

card7.setFunc(Back.easeOut);
card7.setSpeed(2);

card8.setFunc(Back.easeOut);
card8.setSpeed(2);

}

[/as]