stopDrag 函数

stopDrag() : Void

停止当前的拖动操作。

注意仅当 System.capabilities.hasMousetrue 或者 System.capabilities.hasStylustrue 时,Flash Lite 中才支持此方法。

示例

下面的代码(位于主时间轴中)会在用户释放鼠标按钮时停止对影片剪辑实例 my_mc 的拖动动作:

my_mc.onPress = function () {
 startDrag(this);
}

my_mc.onRelease = function() {
 stopDrag();
}

请参阅

startDrag 函数, _droptarget(MovieClip._droptarget 属性), startDrag(MovieClip.startDrag 方法), stopDrag(MovieClip.stopDrag 方法)