Skip to main content
Known Participant
February 11, 2008
Question

move movieclip

  • February 11, 2008
  • 1 reply
  • 232 views
I have two clips a slider called bar and circle called ball. I want ball to move as the user is using the vertical slider. The bar_mc is locked on the y axis and the ball_mc is locked on the x axis. The bar_mc is a slider (pan) control. When use it will move/control the ball_mc. I need help to achieve this.
This topic has been closed for replies.

1 reply

clbeech
Inspiring
February 11, 2008
I'd use the MovieClip.startDrag() method instead of the global function, but it doesn't really matter too much :) what you need to do is also trigger an onEnterFrame event that updates the position of 'ball' as you drag the 'bar'. something like:

Known Participant
February 12, 2008
that did not work :(