1 Reply Latest reply on Aug 10, 2011 10:36 AM by kglad

    StartDrag Action on MovieClip

    DiegoDiazCuellar Level 1

      Hi to evey one it's a long time since i write in this forums ...

       

      A friend need's to create a flash banner like this site and I'm help him ... i write this action to a movie clip, but the clip have to be on movement.

       

      mover = function (){
           this.onEnterFrame = function() {
                _root.mc._x -= (_root.mc._x-(_root._xmouse))*0.3;
                _root.mc._y -= (_root.mc._y-(_root._ymouse))*0.0;
           }
      }
      this.onMouseMove = function() {
           if(mc.hitTest(_root._xmouse, _root._ymouse)) {
                mover();
           }
      }
      

       

      Is there a way to use the startDrag function on a movieclip on movement???

       

      Thanks a lot.