1 Reply Latest reply on Mar 17, 2008 9:01 PM by Newsgroup_User

    Movie clip plays onRollover?

    Level 7
      When someone rolls over a button, I would like it to play a movie clip.
      I place the movie clip on the rollover state though it is not working.

      1. Am I doing this right?

      2. What if I want the movie clip to play somewhere else on the stage.
      How do I position the movie clip while in button edit mode so it is in
      the location I want it to be when it is actually placed on the stage?

      Thanks.
        • 1. Re: Movie clip plays onRollover?
          Level 7
          dave wrote:
          > When someone rolls over a button, I would like it to play a movie clip.
          > I place the movie clip on the rollover state though it is not working.
          >
          > 1. Am I doing this right?

          Not really the right way. Tho, You can place movie clip in over state of the
          button but then you have no control over it as the states reset as soon as you
          move the mouse out of the HIT area. You need to place the clip outside of the
          button, give it instance name and target that instance name using button handlers,
          like on roll over or on press.

          > 2. What if I want the movie clip to play somewhere else on the stage.
          > How do I position the movie clip while in button edit mode so it is in
          > the location I want it to be when it is actually placed on the stage?

          button with instance name myBtn and movie clip with instance name myMovie.
          On timeline frame following action:

          myBtn.onRollover = function(){
          myMovie.play();
          };



          --
          Best Regards

          Urami


          --
          "Never play Leap-Frog with a Unicorn."


          <urami>
          If you want to mail me - DO NOT LAUGH AT MY ADDRESS
          </urami>