# Error #1034: Type Coercion failed on a MouseEvent

**URL:** <https://forum.kirupa.com/t/error-1034-type-coercion-failed-on-a-mouseevent/328523>\
**Category:** flash\
**Created:** [May 23, 2012, 8:13am UTC](https://forum.kirupa.com/t/error-1034-type-coercion-failed-on-a-mouseevent/328523 "2012-05-23T08:13:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkp\_gaurav1](https://avatars.discourse-cdn.com/v4/letter/g/c37758/32.png) [@gkp\_gaurav1](https://forum.kirupa.com/u/gkp_gaurav1)\
**Post date:** [May 23, 2012, 8:13am UTC](https://forum.kirupa.com/t/error-1034-type-coercion-failed-on-a-mouseevent/328523/1 "2012-05-23T08:13:44Z")

</div>

Hey,  
On as3 mouse click event, I have the following code:

```auto
overlay_mc.screen.removeChild(overlay_mc.screen.getChildAt(0));

```

Its removing the chilt at 0 but along with it, it shows me the following error message:  
TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::Event@29750269 to flash.events.MouseEvent.

Any guess what I am doing wrong here?

Thanks.
