【发布时间】:2015-02-03 20:23:09
【问题描述】:
我想创建这个确切的例子:http://www.nytimes.com/2008/12/28/nyregion/18thennow.html?_r=2& 但是,阻力发生在 y 轴上而不是 x 轴上。我正在使用一些基本代码,但想知道如何将其锁定到位?
myImage.mask = myMask;
stage.addEventListener(MouseEvent.MOUSE_DOWN, fMouseDown);
stage.addEventListener(MouseEvent.CLICK, fMouseUp);
function fMouseDown(e:MouseEvent):void {
myMask.startDrag();
}
function fMouseUp(e:MouseEvent):void {
myMask.stopDrag();
}
这不是我所需要的,有什么帮助吗?提前致谢!
【问题讨论】:
标签: image actionscript-3 draggable mask movieclip