# Maximum point?

**URL:** <https://forum.kirupa.com/t/maximum-point/313915>\
**Category:** flash\
**Created:** [September 13, 2010, 7:10pm UTC](https://forum.kirupa.com/t/maximum-point/313915 "2010-09-13T19:10:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vivavida](https://avatars.discourse-cdn.com/v4/letter/v/848f3c/32.png) [@Vivavida](https://forum.kirupa.com/u/Vivavida)\
**Post date:** [September 13, 2010, 7:10pm UTC](https://forum.kirupa.com/t/maximum-point/313915/1 "2010-09-13T19:10:32Z")

</div>

Ok another question, how do you set the maximum point of an x value?

I tried  
var X = MC.x  
Math.max(x = 100)

but that didnt seem to work…

McBtnDrag.x = 0;

function init()  
{  
var X = McBtnDrag.x  
Math.max(X = 300)  
X = 299  
trace(“hello”)  
}  
init();

McBtnDrag.x = 0;

function init()  
{  
var X = McBtnDrag.x  
Math.max(X = 300)  
X = 299  
trace(“hello”)  
}  
init();

does not work at all :\

oh wait, Math.Max is something else. Its obvious why that doesnt work
