5 Replies Latest reply on May 21, 2007 3:45 PM by eljefeloco101

    Need a script upgrade to AS 2.0

    eljefeloco101 Level 1
      So I guess it's been a while since I've worked in Flash...

      I've been using this script from Flash to the Core for quite some time. I'm finally re-designing my site and found that one of my most used scripts doesn't work anymore. Anyone know how to do this in AS 2.0? What this does is play along the targeted timeline when the mouse is hovering. When the mouse leaves the hot spot, the timeline plays in reverse to the beginning. Here's the code:

      On the root timeline I use:

      my_mc.onEnterFrame = function() {
      if (fade) {
      this.nextframe();
      } else {
      this.prevframe();
      }

      };

      then I have a button where I use:

      on (rollOver) {
      fade = true;
      }
      on (rollOut, dragOut) {
      fade = false;
      }

      my_mc is a 15 frame MC that changes a shape's color (or something...)