Custom Event conflict between swfs (Error 1034)

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:

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

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

private function sectionCloseHandler(e:*):void {

any ideas on how to solve this conflict?