# DispatchEvent before add to stage?

**URL:** <https://forum.kirupa.com/t/dispatchevent-before-add-to-stage/283179>\
**Category:** flash\
**Created:** [March 3, 2009, 1:12pm UTC](https://forum.kirupa.com/t/dispatchevent-before-add-to-stage/283179 "2009-03-03T13:12:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manolie](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@manolie](https://forum.kirupa.com/u/manolie)\
**Post date:** [March 3, 2009, 1:12pm UTC](https://forum.kirupa.com/t/dispatchevent-before-add-to-stage/283179/1 "2009-03-03T13:12:55Z")

</div>

Hello…  
I am trying dispatchEvent in a class (aClass extends MovieClip) that is instantiated by another class (mainClass extends movieclip),but I am not able to dispatch the custom event in the mainClass unless the aClass is added to the display list (using stage.addChild())  
Is there another way to do such a thing?
