# Remove child

**URL:** https://forum.kirupa.com/t/remove-child/317301
**Category:** Uncategorized
**Created:** [December 16, 2010, 11:30am UTC](https://forum.kirupa.com/t/remove-child/317301 "2010-12-16T11:30:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dhandayuthapani](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dhandayuthapani](https://forum.kirupa.com/u/dhandayuthapani)
#### Post date: [December 16, 2010, 11:30am UTC](https://forum.kirupa.com/t/remove-child/317301/1 "2010-12-16T11:30:56Z")

</div>

hi this i write a program . ciecle is display i using addchild and i using removechild for disappering circle.pls tell me  
error no :1046 is come how can i clear this error

package  
{

```
import flash.display.MovieClip;
import flash.display.Shape;

public class boxx extends MovieClip
{

	public function boxx():void
	{
	
		var box_1:box = new box();
		addChild(box_1);
		box_1.x = 170;
	}
	
	 mc_but.addEventListener(MouseEvent.CLICK, RemoveObject);
     public function RemoveObject(event:MouseEvent):void
	{
		//var box_1:box = new box();
		removeChild(box_1);
	}
}
```
