How to create tiles is as3

i know tiles are generated using 2 for loops. but im havng a hard time figuring out how to craeate a tile effect from an xml file, similar to this http://issuu.com/

Need your help as3 gurus on this one. Much Thanks!