# Sound tab 38th try

**URL:** <https://forum.kirupa.com/t/sound-tab-38th-try/194634>\
**Category:** Uncategorized\
**Created:** [July 25, 2006, 5:42am UTC](https://forum.kirupa.com/t/sound-tab-38th-try/194634 "2006-07-25T05:42:09Z")\
**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 25, 2006, 5:42am UTC](https://forum.kirupa.com/t/sound-tab-38th-try/194634/1 "2006-07-25T05:42:09Z")

</div>

okay after someone suggested senoculars tutorial on Dealing With Flash Button Event Capturing [http://www.senocular.com/flash/tutorials/buttoncapturing/](http://www.senocular.com/flash/tutorials/buttoncapturing/)

I have throughly read and understand about MC’s within MC’s and having functions involving each, however I am trying to do something a little different and can still not figure this out.

I have soundtab\_mc that on rollOver I want to pop out to display sound controls; play, next, back and stop. I have created these and they are all MC’s within soundtab\_mc. I have been working on this for 4 days now and stuck to the fullest extent. My new AS for sound controls is as follows:

```auto

this.soundtab_mc.play_mc.onPress = function() {
  _parent.sound_mc.songStarter(songfile[song_nr], songname[song_nr]);
  soundtab_mc.onPressHandler() {
   this.gotoAndPlay(2);
  }
  soundtab_mc.onPressHandler() {
   this.gotoAndPlay(15);
  }
};
this.soundtab_mc.stop_mc.onPress = function() {
  _parent.sound_mc.sound_obj.stop();
    soundtab_mc.onPressHandler() {
   this.gotoAndPlay(2);
  }
  soundtab_mc.onPressHandler() {
   this.gotoAndPlay(15);
  }
};
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.onPressHandler() {
   this.gotoAndPlay(2);
  }
  soundtab_mc.onPressHandler() {
   this.gotoAndPlay(15);
  }
};
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.onPressHandler() {
   this.gotoAndPlay(2);
  }
  soundtab_mc.onPressHandler() {
   this.gotoAndPlay(15);
  }
};

```

I know this AS isnt right because when I check syntax it prompts me for errors for the gotoAndPlay areas.

I throughly understand now how to set up MC’s within MC’s (thanks to senoculars tutorial) and not involve any action of gotoAndPlay but I would like to have that feature so the tab is hidden off to the side until user chooses to rollover it and Press Play, Stop, Next or Prev.

I am sincerely lost on this any help is appreciated. Thanks in advance.  
MT
