ActionScript 2.0 语言参考 |
|
|
|
| ActionScript 语言元素 > 全局函数 > stopDrag 函数 | |||
stopDrag() : Void
停止当前的拖动操作。
可用性:ActionScript 1.0、Flash Player 4
下面的代码(位于主时间轴中)会在用户释放鼠标按键时停止对影片剪辑实例 my_mc 的拖动动作:
my_mc.onPress = function () {
startDrag(this);
}
my_mc.onRelease = function() {
stopDrag();
}
startDrag 函数, _droptarget(MovieClip._droptarget 属性), startDrag(MovieClip.startDrag 方法), stopDrag(MovieClip.stopDrag 方法)
|
|
|
|