Need help with movieClip

Hi there,

I want to make a resizable movieClip, but unfortunately I’ve got a problem with y limitation.
Roughly saying I want the movieClip stop when it reaches certain y position.
I’ve done as follows:
/
onClipEvent (enterFrame) {

if(Key.isDown(Key.PGDN)) {
    this._yscale+=6;
    _root.rope._y+=0.6;
} if (Key.isDown(Key.PGUP)) {
    this._yscale-=6;
    _root.rope._y-=0.6;
    
} if (this._y < 303.9) {
    rope._y = 303.9;
} else if (this._y > 414.6) {
    rope._y = 414.6;
}

}
There is something wrong in the last part I suppose. I would be really grateful for any help.