
Код:
target_mc.onMouseDown = function(){
start_xmouse = _root._xmouse;
onMouseMove = function(){
if ((Math.abs(_root._xmouse) - Math.abs(start_xmouse)) >= 20){
trace ("action on moving right");
}
if ((Math.abs(_root._xmouse) - Math.abs(start_xmouse)) <= -20){
trace ("action on moving left");
}
}
}
target_mc.onMouseUp = function(){
onMouseMove = null;
}
Собственно и все дела
