24 Replies Latest reply on Aug 1, 2007 2:01 PM by kglad

    Simple onRelease method doesn't work - why?

    redbarn03
      I have a nav system I'm developing and below is a piece of the code. It all is functioning well except the onRelease won't work. Any ideas, help would be a life saver. Thanks!

      this.onEnterFrame = function() {
      if (main_nav_mc.mag_nav_mc.hitTest(this._xmouse, this._ymouse, true)) {
      main_nav_mc.mag_nav_mc.gotoAndStop("on");

      if (main_nav_mc.mag_nav_mc.mag_subnav1_mc.hitTest(this._xmouse, this._ymouse, true)) {
      main_nav_mc.mag_nav_mc.mag_subnav1_mc.gotoAndStop("on");

      main_nav_mc.mag_nav_mc.mag_subnav1_mc.onRelease = function() {
      getURL("web address here", _blank);
      }

      } else {
      main_nav_mc.mag_nav_mc.mag_subnav1_mc.gotoAndStop("off");
      }


      main_nav_mc.mag_nav_mc.onRollOut = function() {
      main_nav_mc.mag_nav_mc.gotoAndStop("off");
      }
      }