# Custom events within package

**URL:** <https://forum.kirupa.com/t/custom-events-within-package/302266>\
**Category:** flash\
**Created:** [December 24, 2009, 6:32pm UTC](https://forum.kirupa.com/t/custom-events-within-package/302266 "2009-12-24T18:32:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![H4T](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/h4t/32/329_2.png) [@H4T](https://forum.kirupa.com/u/H4T)\
**Post date:** [December 24, 2009, 6:32pm UTC](https://forum.kirupa.com/t/custom-events-within-package/302266/1 "2009-12-24T18:32:10Z")

</div>

I’m trying to create a custom multi-touch application that consists of a package containing about 6 classes at the moment. I’m trying to find a way to communicate between the various classes when certain custom events happen but am having a hard time making custom events.

I’ve tried about 5 different tutorials online for creating custom events and none of them have worked. The code is a bit extensive so I won’t attach it but the specific situation I’m dealing with goes like this:

There is a drop down menu system that contains file names from an XML file. When the file name is clicked in the menu I want a custom event to be dispatched that I can pick up in another class file that loads the name of that file into a “status bar” textfield element elsewhere in the app, and later a class that will open the file and add it to the stage.

Can anyone point me in the right direction for creating events like this?
