标签:list lis stage 移动 ber dev down var tag
var oldX:Number; stage.addEventListener(MouseEvent.MOUSE_DOWN,downF); stage.addEventListener(MouseEvent.MOUSE_UP,upF); function downF(e:Event) { oldX = stage.mouseX; } function upF(e:Event) { var endX = stage.mouseX; if (oldX - endX > precision) { trace("鼠标向左滑了"); } else if (oldX - endX < -precision) { trace("鼠标向右滑了"); } }
标签:list lis stage 移动 ber dev down var tag
原文地址:http://www.cnblogs.com/dt1991/p/7749921.html