Dynamic colums

I am trying to get my movieclips to output in the following way

image here

working with this script

http://snipplr.com/view/15469/dynamic-columns--rows but this fills up the first row and does not alternate them. Does anyone know how to get this outputting in the order I want?

Thanks.