# AS3: Creating a custom Event Class

**URL:** https://forum.kirupa.com/t/as3-creating-a-custom-event-class/213296
**Category:** flash
**Created:** [January 18, 2007, 3:17pm UTC](https://forum.kirupa.com/t/as3-creating-a-custom-event-class/213296 "2007-01-18T15:17:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Flashthinker](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@Flashthinker](https://forum.kirupa.com/u/Flashthinker)
#### Post date: [January 18, 2007, 3:17pm UTC](https://forum.kirupa.com/t/as3-creating-a-custom-event-class/213296/1 "2007-01-18T15:17:42Z")

</div>

Could anyone tell me how to create custom event from beginning to end in AS3?

I’d like to know how to create a custom event that extends the Event class and then how to dispatch it. Also, I’d like to know how to catch it using the addEventListener() in the format Event.ENTER\_FRAME or Event.CHANGE etc…

I’m having some difficulty understanding how events work. I believe “ENTER\_FRAME” is a constant holding some value but I don’t see how that could dispatch an event. From what I understand; ENTER\_FRAME is a static variable of the Event class?

Could someone clarify things plz.

Thanks a bunch.
