# removeChild Problem

**URL:** https://forum.kirupa.com/t/removechild-problem/269963
**Category:** flash
**Created:** [September 3, 2008, 5:12pm UTC](https://forum.kirupa.com/t/removechild-problem/269963 "2008-09-03T17:12:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![outlaw\_xXx](https://avatars.discourse-cdn.com/v4/letter/o/ecccb3/32.png) [@outlaw\_xXx](https://forum.kirupa.com/u/outlaw_xXx)
#### Post date: [September 3, 2008, 5:12pm UTC](https://forum.kirupa.com/t/removechild-problem/269963/1 "2008-09-03T17:12:11Z")

</div>

```php
.
.
.
	addChild(mc);
	
	if (mc.y <= 0) {
		removeChild(mc);
	}
.
.
.

```

this code is supposed to remove the movieclip if it goes on the top side outside of the movie which is negative Y value. For some reason the movie clip goes into the negative value and it is still there…if anyone can give me some tips it would be appreciated thanks
