Which direction clip moving ?
Hi all,
I have a simple clip with a startDrag onPress and stopDrag onRelease - I was looking for a way to determine which way the clip was being dragged, either up or down.
slider_mc.onPress = function() {
startDrag(this, false, 186, 300, 186, 0);
this.onEnterFrame = function() {
if (this._y += 1) {
trace("moving up");
}else{
trace("moving down")
}
};
};
slider_mc.onRelease = function() {
delete this.onEnterFrame;
stopDrag();
};