0 Replies Latest reply on Jan 26, 2007 11:49 AM by dalewb

    code for button is affecting the entire movie

    dalewb Level 1
      The following code is on the timeline and the button instance, cancelMC, is also on the same timeline in a different layer and appears 4 times throughout the timeline. I've asked this question (worded differently) at kirupa and the post has gone ignored for some reason - maybe the title is too long or something. The code tells the button, onRelease, to "gotoAndStop(1)" however, if you click anywhere on the interface it does that. This is what would have happened if I had put on the timeline "this.gotoAndStop(1)." But I did not type that as you can see:
      with(cancelMC){
      onRollOver = function(){
      this.ExplainMC.gotoAndStop("cancel");
      }
      onRollOut = function(){
      this.ExplainMC.gotoAndStop("void");
      }
      onRelease = onReleaseOutside = function(){
      _root.searchPanelMC.mainMenuMC.gotoAndStop(1);
      this.gotoAndStop("user");
      }
      }

      Notice it says "this.cancelMC"? That is the button. Someone please help with this - I am at a loss and have tried everything to make it work.