# Overlapping movieclips when zooming

**URL:** https://forum.kirupa.com/t/overlapping-movieclips-when-zooming/316407
**Category:** flash
**Created:** [November 20, 2010, 1:58pm UTC](https://forum.kirupa.com/t/overlapping-movieclips-when-zooming/316407 "2010-11-20T13:58:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Dames](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@Dames](https://forum.kirupa.com/u/Dames)
#### Post date: [November 20, 2010, 1:58pm UTC](https://forum.kirupa.com/t/overlapping-movieclips-when-zooming/316407/1 "2010-11-20T13:58:02Z")

</div>

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.

```auto
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:
