2 Replies Latest reply on Oct 10, 2006 11:03 PM by AnandMX

    Multiple event handlers for one button

    akeezy
      I'm trying to create a button with 2 event handlers, such that when you roll-over the button, a submenu pops up, and when you click the button, you go to a certain frame. I feel like this shouldn't be hard at all, but it's not working. Below is the actionscript I have tried. Both event handlers work as I want them to if alone, but the on(release) functionality does not work when I try to put them together.(I have Flash 8). Thanks for your help!

      on (release) {
      _root.gotoAndStop("one1");
      tellTarget (_root.navigation) {
      gotoAndStop (1);
      }
      }
      on (rollOver) {

      this.gotoAndPlay("links");
      tellTarget (_root.navigation.introduction) {
      gotoAndStop (1);
      }
      tellTarget (_root.navigation.overview) {
      gotoAndStop (16);
      }
      tellTarget (_root.navigation.coronary) {
      gotoAndStop (1);
      }
      }