# Expanding Mc and removeMovieClip?

**URL:** <https://forum.kirupa.com/t/expanding-mc-and-removemovieclip/77710>\
**Category:** Uncategorized\
**Created:** [January 29, 2005, 10:54am UTC](https://forum.kirupa.com/t/expanding-mc-and-removemovieclip/77710 "2005-01-29T10:54:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yossarian](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@yossarian](https://forum.kirupa.com/u/yossarian)\
**Post date:** [January 29, 2005, 10:54am UTC](https://forum.kirupa.com/t/expanding-mc-and-removemovieclip/77710/1 "2005-01-29T10:54:36Z")

</div>

I’m trying to drag an Mc to a Target which then expands 5% each time it’s hit. I can’t think of where to place the

```auto
_root.mc1.removeMovieClip()

```

so that it disappears when hitting the Target. Now, the Target expands until it fills the entire screen… Any idea how I can do this + limit the max. size of the Target? Would that be with something like \*\*if (\_xscale - \*\* if so any idea where it would go?

Here’s what I’ve done so far (code on Action mc outside stage)

```auto
onClipEvent (enterFrame) {

	// see if the MC hit the Target
	if (_root["target"].hitTest(_root["mc1"])) {

		// collision, so Target expands
		_root["target"]._xscale += 5;
		_root["target"]._yscale += 5;
					
			} else {

		//checks if the MC is placed in Target
	_root.isTarget(this);
};		

	} 

```

Then attached this to the MC

```auto
on (press) {
	startDrag("", true);
}
on (release, releaseOutside) {
	stopDrag();
}

```

Grateful for any help ! 🙂

Yoss
