Skip to main content
Participant
June 19, 2006
Answered

on (rollOver)

Hi I have the code below acting when I move my cursor over a button. It starts the movement of a movie clip.
How can I stop the movement when the cursor leaves the button?

on (rollOver) {
this.onEnterFrame = function () {
this.filmstripe_mc._x += 5;
}
}

TIRislaa
This topic is closed to new replies. Start a new post to keep the conversation going.
2m91_2
2m91_2Correct answer
Inspiring
June 19, 2006
How about

on (rollOut) {
delete this.onEnterFrame;
}

?

2 replies

2m91_2
2m91_2Correct answer
Inspiring
June 19, 2006
How about

on (rollOut) {
delete this.onEnterFrame;
}

?
Translate
Participant
June 19, 2006
excellent ...........
Translate