《Flash Lite 2.x ActionScript 语言参考》 |
|
|
|
| ActionScript 语言元素 > 全局函数 > stopDrag 函数 | |||
stopDrag() : Void
停止当前的拖动操作。
注意:仅当 System.capabilities.hasMouse 为 true 或者 System.capabilities.hasStylus 为 true 时,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 方法)
|
|
|
|