i'ts not jquery...


you could try something like this...

Code:
onClipEvent(mouseDown){

	spinSpeed = 5;

	latestX = _xmouse;

	checkX =  function (dx, oldVal, newVal)  {
	
		if (oldVal != undefined) {
			if (latestX-newVal<-30/spinSpeed) {
				latestX = _xmouse;
				if (_currentFrame == 1) {
					gotoAndStop(_totalframes);
				} else {
					prevFrame();
				}
			} else if (latestX-newVal>30/spinSpeed) {
				latestX = _xmouse;
				if (_currentframe == _totalframes) {
					gotoAndStop(1);
				} else {
					nextFrame();
				}
				
			}
		}
		return newVal;
	};
	
	this.onMouseMove = function() {
		xdir = _xmouse;
	};
	
	this.watch("xdir", checkX);

}

onClipEvent (mouseUp) {
	this.unwatch("xdir");
}