Complicated photo gallery with grid

Hi, I’ve tried to find a solution for my problem in forum but I could’t. My grid has a little differences than whose described in forum.

I want to have grid with max 8 pics in row and about 14 columns. Pics are parsed from XML file. Above every row I’d like to put some small text so every row will be described by one small title. I was experimentig for a lot time and probably my problem is in nested loop which parses data from XML.

Thanks for every little help.

I’ve included .fla, and .xml file.
P.S. My zip file was too big so I compressed with rar and changed the name to zip. If you have any problems with uncompressing, just change to .rar extension.