2 Replies Latest reply on Aug 29, 2006 8:32 AM by sbryner

    Mouse Over

    sbryner Level 1
      I'm sure this is simple. I'm trying to have a "container" movieclip move while I'm over
      the problem is I'm not really finding a solution like onmouseWith. I'm thinking it would have to be a

      while() or if() and using the mouse coordinates or
      using a hitTest.

      any thoughts?


        • 1. Re: Mouse Over
          blemmo Level 1
          You could use this:

          fwd_mc.onRollOver = function(){
          container.onEnterFrame = function(){
          this._x += 5;
          fwd_mc.onRollOut = function(){
          delete container.onEnterFrame;

          OnRollOver, it assigns an onEnterFrame event to the container that moves this MC. OnRollOut, the event gets deleted, so as long as the mouse is over the fwd_mc, the container moves.

          • 2. Re: Mouse Over
            sbryner Level 1
            I found tutorials for what I'm wanting to do. I just need to adjust it for my own project. I'm trying to piece to different tutorials together...

            Sliding Viewer Project

            Is there a way to change it (simply) that you can see to use a "container" as seen in this tutorial.

            Creating Container For Sliding Viewer Project

            Here is what I'm starting with:

            Any suggestions that might simplify it?

            Thanks for any guidance,