9 Replies Latest reply on Feb 25, 2007 8:49 AM by kglad

    onRelease script on MC tells _root to stop and play other MC

    fourthdimension
      On one frame on the main timeline I have the following code that references several nested MCs in a MC on the maintime line:
      stop();
      _root.home_mc.FacadesThumbs_mc.onRelease = function() {
      trace("clicked");
      _level0.gotoAndStop("portfolioClicked");
      _global.strDesiredFrame = "grow";
      };
      this.CollectionsThumb_mc.onRelease = function() {
      trace("clicked");
      _root.gotoAndStop("portfolioClicked");
      _global.strDesiredFrame = "seaglass";
      };

      Now, on the frame "portfolioClicked" I have th following code which has a global variable which tells the playhead to goto and stop on a certain frame of a nested MC called galeries_mc.

      stop();
      if(_global.strDesiredFrame != ""){
      this.portfolios_mc.gotoAndStop(_global.strDesiredFrame);
      _global.strDesiredFrame = "";
      }

      HERE IS THE PROBLEM...

      When I test the swf, I get a "hand" over the CollectionsThumb_mc but not the FacadesThumbs_mc. What gives? I cannot find anything weird or different between the two MCs using the parameters inspector. Neither can I find any erroneous code that might mess things up.

      Any help is appreciated....