# Event Bubbling, workaround: Delegation

**URL:** <https://forum.kirupa.com/t/event-bubbling-workaround-delegation/194768>\
**Category:** flash\
**Created:** [July 26, 2006, 5:06am UTC](https://forum.kirupa.com/t/event-bubbling-workaround-delegation/194768 "2006-07-26T05:06:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Multi\_Task](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@Multi\_Task](https://forum.kirupa.com/u/Multi_Task)\
**Post date:** [July 26, 2006, 5:06am UTC](https://forum.kirupa.com/t/event-bubbling-workaround-delegation/194768/1 "2006-07-26T05:06:22Z")

</div>

After reading senoculars button event caputuring ([http://www.senocular.com/flash/tutorials/buttoncapturing/](http://www.senocular.com/flash/tutorials/buttoncapturing/))

I have been trying to get something to work using workaround #1 and I need some help.

I am trying to get a sound control tab (see attached file) to have a rollOver state which slides in and have buttons on tab be usable but cant seem to grasp the AS needed.

This is the AS but I know it is incorrect because it is not can anyone please help so that I can grasp this concept?

```auto

this.soundtab_mc.play_mc.onPress = function() {
  _parent.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
  soundtab_mc.onRollOverHandler()
  
  /// How can I have this function for soundtab_mc work along with buttons within this MC?
   /// this.gotoAndPlay(2);
  /// }
  /// soundtab_mc.onPressHandler() {
   /// this.gotoAndPlay(15);
  /// }
};
this.soundtab_mc.stop_mc.onPress = function() {
  _parent.sound_mc.sound_obj.stop();
    soundtab_mc.onRollOverHandler()
};
this.soundtab_mc.next_mc.onPress = function() {
 (song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++;
  _parent.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
    soundtab_mc.onRollOverHandler()
};
this.soundtab_mc.prev_mc.onPress = function() {
 (song_nr == 0) ? _global.song_nr=songfile.length-1 : _global.song_nr--;
  _parent.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
   soundtab_mc.onRollOverHandler()
};
stop();
 

```

Thanks for any suggestions. MT
