Changing Characters Depth

hi guys, i was wondering how i would go about changing a characters depth. I need it to be applicable to any MC i apply the code to though.

I did try doing it myself but i have never delt with “depth” , in depth b4. (no pun intended)

onClipEvent (enterFrame){
 if (>this._y) {
 } else {;

i tried that but i know its wrong because it looks to simple for such a complex thing lol.

Ok guys thanx alot i hope sumone can help