# Get Max/Min height

**URL:** <https://forum.kirupa.com/t/get-max-min-height/172755>\
**Category:** Uncategorized\
**Created:** [December 17, 2005, 3:33pm UTC](https://forum.kirupa.com/t/get-max-min-height/172755 "2005-12-17T15:33:29Z")\
**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:33pm UTC](https://forum.kirupa.com/t/get-max-min-height/172755/1 "2005-12-17T15:33:29Z")

</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
