Skip to main content
Inspiring
May 21, 2007
Question

Need a script upgrade to AS 2.0

  • May 21, 2007
  • 1 reply
  • 135 views
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...)



This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 21, 2007
see your duplicate thread.