# Events wont work \[ troubles \]

**URL:** <https://forum.kirupa.com/t/events-wont-work-troubles/210337>\
**Category:** flash\
**Created:** [December 17, 2006, 10:55pm UTC](https://forum.kirupa.com/t/events-wont-work-troubles/210337 "2006-12-17T22:55:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pointer](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@pointer](https://forum.kirupa.com/u/pointer)\
**Post date:** [December 17, 2006, 10:55pm UTC](https://forum.kirupa.com/t/events-wont-work-troubles/210337/1 "2006-12-17T22:55:15Z")

</div>

I have a problem to trigger some buttons…

```auto
 
trace (subItem)

traces....

_level0.mainMenu.menuItem0.subMenu.subItem1
_level0.mainMenu.menuItem0.subMenu.subItem2

subItem.onRollOver = function() {
    trace ("hey")
        .....traced nothing.
};

```

I know events cant be nested.  
If read the story here…  
[http://www.senocular.com/flash/tutorials/buttoncapturing/](http://www.senocular.com/flash/tutorials/buttoncapturing/)

Somehow i can’t figure it out how i do get it to work.

i tried with this.

```auto

subItem.onPress = function () {menuItem.onPressHandler(); trace("PRESSED");};

```
