# Event Bubbling

**URL:** <https://forum.kirupa.com/t/event-bubbling/243103>\
**Category:** flash\
**Created:** [November 2, 2007, 8:08pm UTC](https://forum.kirupa.com/t/event-bubbling/243103 "2007-11-02T20:08:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![forumSteve](https://avatars.discourse-cdn.com/v4/letter/f/a88e4f/32.png) [@forumSteve](https://forum.kirupa.com/u/forumSteve)\
**Post date:** [November 2, 2007, 8:08pm UTC](https://forum.kirupa.com/t/event-bubbling/243103/1 "2007-11-02T20:08:57Z")

</div>

Hi,

Please let me know if this doesn’t make sense…

I’m developing a series of sequencing classes. SequenceList has an array of Sequences. Each Sequence has an array of Steps. Each Step has an array of Conditions.

A Step dispatches a custom event (with bubbles set to true) when one of its conditions have been satisfied.

The parent Sequence doesn’t receive the event unless I add the listener directly to the Step.

Inside class Sequence:

```auto
_array[_index].addEventListener...

```

Why doesn’t the following work?!? Doesn’t the event bubble to the Sequence because it originates from a item stored in a array property of the class?

Inside class Sequence:

```auto
this.addEventListener...

```

More importantly:

The document class contains the SequenceList intance(s). It controls which instance is active. I need to addEventListener directly to the SequenceList instance and have it receive events dispatched from any Sequence or Step. Shouldn’t this work based on bubbling? What am I missing here?!?
