# Error 1034: Variables cannot be native

**URL:** <https://forum.kirupa.com/t/error-1034-variables-cannot-be-native/251457>\
**Category:** flash\
**Created:** [February 8, 2008, 5:53pm UTC](https://forum.kirupa.com/t/error-1034-variables-cannot-be-native/251457 "2008-02-08T17:53:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![forumSteve](https://avatars.discourse-cdn.com/v4/letter/f/a88e4f/32.png) [@forumSteve](https://forum.kirupa.com/u/forumSteve)\
**Post date:** [February 8, 2008, 5:53pm UTC](https://forum.kirupa.com/t/error-1034-variables-cannot-be-native/251457/1 "2008-02-08T17:53:20Z")

</div>

Hi,

I’m experiencing a problem dispatching a custom event class. A TypeError is thrown

at flash.events::EventDispatcher/dispatchEventFunction()  
at flash.events::EventDispatcher/dispatchEvent()

The error says “Type Coercion failed: cannot convert \<package name\>::CustomEvent@14b7b51 to \<package name\>.CustomEvent.”

Compile errors on LiveDocs describes the error as “variables cannot be native.”

Also important to mention… It only occurs when bubbling is set to true.

Any info would be great!

Thanks!
