I have function to zoom in and out a movieclip in one frame. Problem is that when i click on a button for another frame, where i have another picture, this from frame one, overlap.
koszula0.addEventListener(MouseEvent.ROLL_OVER, zoomIn_0);
koszula0.addEventListener(MouseEvent.ROLL_OUT, zoomOut_0);
function zoomIn_0(ev:MouseEvent):void{
this.setChildIndex(this.getChildByName(ev.target.name), this.numChildren-1);
TweenLite.to(koszula0, 1, {scaleX:3, scaleY:3});
}
function zoomOut_0(ev:MouseEvent):void{
TweenLite.to(koszula0, 1, {scaleX:1, scaleY:1});
}
i have no idea how to unriddle this… thx. for any idea. :mu: