1 Reply Latest reply on Jul 18, 2006 4:14 PM by Newsgroup_User

    Stop random button animations playing

    flanky

      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.
        • 1. Re: Stop random button animations playing
          Level 7
          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.
          >