# Cascading functions from events

**URL:** <https://forum.kirupa.com/t/cascading-functions-from-events/250188>\
**Category:** flash\
**Created:** [January 26, 2008, 6:11pm UTC](https://forum.kirupa.com/t/cascading-functions-from-events/250188 "2008-01-26T18:11:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguelele](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@Miguelele](https://forum.kirupa.com/u/Miguelele)\
**Post date:** [January 26, 2008, 6:11pm UTC](https://forum.kirupa.com/t/cascading-functions-from-events/250188/1 "2008-01-26T18:11:51Z")

</div>

HI, I have a big doubt about loaders:

When loading video, pictures or XML data, an event is dispatched when the load process is finished, then a function is called to do whatever I want to do with the loaded data.

So all subsequent instructions must be inside the called function. In if I need more data loads, I find myself diving into nested functions, and I dont like it.

Is there any other approach for these things?

Regards: Miguel
