# Need help with movieClip

**URL:** <https://forum.kirupa.com/t/need-help-with-movieclip/274246>\
**Category:** Uncategorized\
**Created:** [October 27, 2008, 3:24pm UTC](https://forum.kirupa.com/t/need-help-with-movieclip/274246 "2008-10-27T15:24:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![teltom](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@teltom](https://forum.kirupa.com/u/teltom)\
**Post date:** [October 27, 2008, 3:24pm UTC](https://forum.kirupa.com/t/need-help-with-movieclip/274246/1 "2008-10-27T15:24:04Z")

</div>

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 &lt; 303.9) {
    rope._y = 303.9;
} else if (this._y &gt; 414.6) {
    rope._y = 414.6;
}

```

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