XML Drop Down Menu

Hey all… been working on a variation of this tute for a few days now. It’s basically the same except i’m applying it to buttons instead of a “drop-down menu”. I wanted to limit the amount of items displayed and have a “Next” and "Back button that will display the next group until there are none left. I’m almost there… my last problem is the placement of the buttons on the stage. I’ve narrowed it down to this line:

curr_item._x = x+ i*curr_item._width;

but i can’t figure out how to fix it! i’ve attached the file i’ve been working with. any help at all appreciated! :thumb: