startDrag

Hi, I had a problem for a game I am making. I am trying to make a sliding invitory (can’t spell) and it doesn’t wanna work for me.
This what I have so far:

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

I don’t know what settings to use in the startDrag option. Please help?