0 Replies Latest reply on Nov 14, 2006 8:20 AM by jandron

    variable troubles

    jandron
      Here is my code...can anyone assist me in determining why the variable value is not being passed to the movie clip control line...line 9. Any suggestions would be GREATLY appreciated!!

      var horVal:Number = 1;
      var vertVal:Number = 1;
      var imVisible:MovieClip = movie1_mc;

      imageHold_mc.attachMovie ("movie1", imVisible, this);

      sliderHor.horSlider = function (horOnSlide) {
      horVal = Math.round(horOnSlide*35) + 1;
      imageHold_mc.imVisible.gotoAndStop(horVal);
      trace (_root.imVisible);
      trace (horVal);
      }
      sliderVert.vertSlider = function (vertOnSlide) {
      vertVal = Math.round(vertOnSlide*24) + 1;
      _root.imVisible = ("movie" + vertVal + "_mc");
      imageHold_mc.attachMovie ("movie" + vertVal, "movie" + vertVal + "_mc", this);
      }

      Thanks!!