【www.bbyears.com--As3.0】
代码如下
bar.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheel);
if (e.delta < 0) {
//如果是向下滚动
moveScroll(bar[type.attribute] + bar[type.type] / 2 + _scrollNum);
}else {
//如果向上滚动
moveScroll(bar[type.attribute] + bar[type.type] / 2 - _scrollNum);
}