Jump to content
Search Community

jrojas

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by jrojas

  1. I am trying to drag and drop a very large movie clip (1600 X 1000), and would like to use a tween to make the dragging and dropping smooth. holder_mc.addEventListener(MouseEvent.MOUSE_DOWN, PickImage); stage.addEventListener(MouseEvent.MOUSE_UP, DropImage); function PickImage (e:MouseEvent):void { holder_mc.startDrag(); TweenMax.to(holder_mc, .2, {x:mouseX, y:mouseY, ease:Sine.easeInOut}); } function DropImage(e:MouseEvent):void { holder_mc.stopDrag(); TweenMax.to(holder_mc, 4, {x:mouseX, y:mouseY, ease:Sine.easeInOut}); } My method is all wrong. The movie clip want to snap to its registration point rather than jus tpick up where it was clicked. Maybe it should follow the mouse after a click instead? And how would I tween it tom make it nice? Im trying to achieve an effect similar to this -- http://journey-to-zero.com/#/RSW thanks!!!
×
×
  • Create New...