1 Reply Latest reply on Oct 29, 2006 6:41 PM by kglad

    scrolling banner buttons

    dreamfocus
      can't get the buttons to respond:

      i have a scrolling banner named picWheel_mc
      within the picWheel_mc are movieclip instances btn1_mc, btn2_mc, etc.
      i have code on the main timeline to scroll the banner in an ininite loop

      this.picWheel2_mc.xcenter = 500;
      this.picWheel2_mc.speed = 0.007;
      this.onEnterFrame = function () {
      var mc:MovieClip = this.picWheel2_mc;
      var distance:Number = _root._xmouse - mc.xcenter;
      mc._x += (distance * mc.speed);
      if (mc._x > 0) mc._x = -1175;
      if (mc._x < -1175) mc._x = 0;
      }
      // looping effect

      then i have this code for the buttons:

      this.picWheel2_mc.btn1_mc.onRelease = function () {
      _root.pics_mc.gotoAndStop ("img1");
      }
      // code for button movieclips

      for some reason, when clicked it does not open the pics_mc to the designated frame...

      i believe it has to do with the parent overriding the child clip

      any help is greatly appreciated