Problem with simple script

Hi. I havent used flash for a long time so brain is kina stuck. Can anyone help me out with this script?

onClipEvent (enterFrame) {
if (this._y<Stage.height && pressed=false) {
this._y+=.8
}
}

on (press) {
pressed= true;
this.startDrag(true)
}
on (release) {
pressed=false
stopDrag();
}

Thanks :ne: