Skip to main content
Participant
July 17, 2006
Question

Stop random button animations playing

  • July 17, 2006
  • 1 reply
  • 211 views

Hi. I'm sure this is a common problem, but can't find any answers...

I have created a menu structure with buttons that play an animation on mouseover and stop on mouse out (thus returning to frame 1). Only problem is, sometimes when the page is loaded an animation will play without any interaction, also if the mouse is moved too quick, the mouseout code isn't triggered and the animation keeps playing.

How do I stop this from happening? Thank you.
This topic has been closed for replies.

1 reply

Inspiring
July 18, 2006
Change it to start on click and stop on click on a different button.

Or, create a movieClip with a button1 on frame one and a different button2
on frame 2.
When the user clicks button1, gotoAndStop frame 2.
When a user clicks button2, gotoAndStop frame 1.

On frame 1 put the code:
myAnimation.play(); //the instance name of your animation

On frame 2 put the code;
myAnimation.stop();

--

Dan Mode
*THE online Radio* http://www.tornadostream.com
*Must Read* http://www.smithmediafusion.com/blog
*Flash Helps* http://www.smithmediafusion.com/blog/?cat=11

"flanky" <webforumsuser@macromedia.com> wrote in message
news:e9erlp$drh$1@forums.macromedia.com...
>
> Hi. I'm sure this is a common problem, but can't find any answers...
>
> I have created a menu structure with buttons that play an animation on
> mouseover and stop on mouse out (thus returning to frame 1). Only problem
> is,
> sometimes when the page is loaded an animation will play without any
> interaction, also if the mouse is moved too quick, the mouseout code isn't
> triggered and the animation keeps playing.
>
> How do I stop this from happening? Thank you.
>