# Custom Event conflict between swfs (Error 1034)

**URL:** <https://forum.kirupa.com/t/custom-event-conflict-between-swfs-error-1034/296019>\
**Category:** flash\
**Created:** [September 8, 2009, 7:25pm UTC](https://forum.kirupa.com/t/custom-event-conflict-between-swfs-error-1034/296019 "2009-09-08T19:25:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![StridBR](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@StridBR](https://forum.kirupa.com/u/StridBR)\
**Post date:** [September 8, 2009, 7:25pm UTC](https://forum.kirupa.com/t/custom-event-conflict-between-swfs-error-1034/296019/1 "2009-09-08T19:25:03Z")

</div>

I’m using a custom event (HotEvent) to make the communication between a loaded swf and its container, but im getting some strange error if i set the event handler parameter type:

```auto

TypeError: Error #1034: Type Coercion failed: cannot convert globals::HotEvent@32e5761 to globals.HotEvent.
    at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at wallpaper.view::Wallpaper/wallpaper.view:Wallpaper::closeBtnHandler()

```

it works fine i dont type the handler function, like this:

```auto

private function sectionCloseHandler(e:*):void {
}

```

any ideas on how to solve this conflict?
