Hi i have a menu that dynamically generates using a xml file. It takes a list item from the xml and makes a flash menu

Now the problem is in the as3 the menu layering all the words on top of each other. Think it has to do with the following code:

menu_item.x = (i * menu_item.height);



Should be

Menu 1
(with a gap here)
Menu 2

Menu 3

Menu 4