I have created a xml based database, wich has all the info on an architect's work, sorted by Menu, subMenu, category, and then all the images in the category. Now i need to create a menu for that, i made arrays that look like this:
folioData[i].main -- wich is the Main menu, like PHOTOS
folioData[i].projecto -- wich is the sub Menu, like PERSONS
folioData[i].subCatg -- wich is the sub category like NUDES
folioData[i].Imagem -- wich is the picture(s), like nude1.jpg
How can I sort, my array in way to make an object Photos.Persons.nudes.image1
or create a menu that photos shows only the suItems in photos, then inside those (persons, landscapes,etc..) show only the categorys (Persons -- Nudes, fashion,etc..) and inside those show only the pictures relative to each one (Persons -- Nudes -- nd1.jpg,nd2.jpg, etc.
If you want to see an example here is the fla and xml files