# Dispatch event from static, non-displayObject based class

**URL:** <https://forum.kirupa.com/t/dispatch-event-from-static-non-displayobject-based-class/294982>\
**Category:** flash\
**Created:** [August 23, 2009, 11:01pm UTC](https://forum.kirupa.com/t/dispatch-event-from-static-non-displayobject-based-class/294982 "2009-08-23T23:01:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![greetification](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@greetification](https://forum.kirupa.com/u/greetification)\
**Post date:** [August 23, 2009, 11:01pm UTC](https://forum.kirupa.com/t/dispatch-event-from-static-non-displayobject-based-class/294982/1 "2009-08-23T23:01:38Z")

</div>

So here is the situation,

I have a SendData class that sends form info to a php script. It is a static class that does not extend anything.

I want to be able to dispatch an event if there is an error, or when it gets info back from the server. I have a custom event class that I have been using to dispatch events like this, but I have only used that in displayObject extended classes.

The problem is, it seems like something has to be a displayObject based class to dispatch events. I know there must be a way to do this, but I’m having trouble finding it in searches.

Any help would be much appreciated.

Thanks!
