Restricting drag to one axis

Hi all, :slight_smile:

I’m using this simple code to drag a clip on stage:

on (press) {
startDrag ("");
}
on (release) {
stopDrag ();
}

Can anyone tell me how I can restrict the drag to the X axis only?

Cheers. :smiley: