3 Replies Latest reply on Jan 14, 2010 7:12 AM by Ned Murphy

    newbie help

    misterbigglesworth Level 1

      I have a button on my site (see below for button code).  When clicked it goes to a specific point on my timeline.  I'd like to create another button which goes to the same place, but I don't want the rollover and rollout stuff... just the link to the same place on the timeline.

       

      Could you help a newbie?

       

      on (rollOver) {
          if (_root.rp<>1) {
              if (_root.link<>_parent.num) {
                  _parent.gotoAndPlay("s1");
              }
          }
      }
      on (releaseOutside, rollOut) {
          if (_root.link<>_parent.num) {
              if (_root.rp<>1) {
                  _parent.gotoAndPlay("s2");
              }
          }
      }
      on (release) {
          if (_root.link<>_parent.num) {
              if (_root.rp<>1) {
                  _root.scroller.gotoAndStop("s0");
                  _root.lcont = _root.link;
                  _root["item"+_root.link].gotoAndPlay("s2");
                  _root.rp = 1;
                  _root.link = _parent.num;
                  _root.gotoAndPlay("s1");           
              }
          }
      }