# % modulo help needed

**URL:** <https://forum.kirupa.com/t/modulo-help-needed/159029>\
**Category:** flash\
**Created:** [August 14, 2005, 12:29am UTC](https://forum.kirupa.com/t/modulo-help-needed/159029 "2005-08-14T00:29:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pointer](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@pointer](https://forum.kirupa.com/u/pointer)\
**Post date:** [August 14, 2005, 12:29am UTC](https://forum.kirupa.com/t/modulo-help-needed/159029/1 "2005-08-14T00:29:22Z")

</div>

I was looking for a way to make put a menu like…

Item1 Item4 Item 5 Item 6  
Item2  
Item3

If i look 2 the modulo i can create it like

1 3 5  
2 4 6  
item.\_x = Math.floor(i/2)_150;  
item.\_y = starty+30_(i%2);

or

1 4  
2 5  
3 6  
item.\_x = Math.floor(i/3)_150;  
item.\_y = starty+30_(i%3);

==============================  
Some one with a solution ?
