# Min/Max Height

**URL:** https://forum.kirupa.com/t/min-max-height/172754
**Category:** programming
**Created:** [December 17, 2005, 3:23pm UTC](https://forum.kirupa.com/t/min-max-height/172754 "2005-12-17T15:23:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sean1983uk](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@sean1983uk](https://forum.kirupa.com/u/sean1983uk)
#### Post date: [December 17, 2005, 3:23pm UTC](https://forum.kirupa.com/t/min-max-height/172754/1 "2005-12-17T15:23:44Z")

</div>

Hey,

this is prob a real simple answer but how do I stop one movieclip from going outside the boundry of another?

I’m guessing i need to assign maxHeight and minHeight according to the other movieclips dimensions.

What i have is on the main time line a movieclip load which i’m using as a spaceship in my game. But i dont want it to be able to go “off”" the screen so need to set a boundry.

I think i need to set a onClipEvent on the spacesip movie clip to assignthe max/min height.

Any help?

Sean
