To allow a movieclip to be dragged while the mouse is pressed (only), you assign a function which executes the startDrag method to the movieclip's onPress event, and a function which executes the stopDrag method to the movieclip's onRelease and onReleaseOutside events.