# Custom progress event

**URL:** <https://forum.kirupa.com/t/custom-progress-event/307004>\
**Category:** Uncategorized\
**Created:** [March 26, 2010, 12:40am UTC](https://forum.kirupa.com/t/custom-progress-event/307004 "2010-03-26T00:40:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [March 26, 2010, 12:40am UTC](https://forum.kirupa.com/t/custom-progress-event/307004/1 "2010-03-26T00:40:58Z")

</div>

Hi folks

So I have this Photo class than handles loading a pic, and dispatches an event when the loading is done with:

```auto
dispatchEvent(new Event("complete"));

```

… which is simple and works, but now I’d like to make something more advanced. I’d like to dispatch the load ratio.

So far I have extended the Event class, with my own EventRatio class, and I can put properties on that class. Which is cool, but I need something more dynamic than just sending a fixed value…

So, what is the best way to connect the Loader object of the Photo object, with the EventRatio object?

Thanks
