# Is it possible to dispatch event from class that isnt extended class of MovieClip?

**URL:** <https://forum.kirupa.com/t/is-it-possible-to-dispatch-event-from-class-that-isnt-extended-class-of-movieclip/298503>\
**Category:** flash\
**Created:** [October 20, 2009, 10:25am UTC](https://forum.kirupa.com/t/is-it-possible-to-dispatch-event-from-class-that-isnt-extended-class-of-movieclip/298503 "2009-10-20T10:25:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![naurispunk](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@naurispunk](https://forum.kirupa.com/u/naurispunk)\
**Post date:** [October 20, 2009, 10:25am UTC](https://forum.kirupa.com/t/is-it-possible-to-dispatch-event-from-class-that-isnt-extended-class-of-movieclip/298503/1 "2009-10-20T10:25:55Z")

</div>

Is it possible to dispatch event from class that isnt extended class of MovieClip?

I created my own class and put  
import flash.events.Event;  
import flash.events.\*;  
but when i call dispatchEvent compiler throws error:“1180: Call to a possibly undefined method dispatchEvent.”

If there is can someone provide an example?
