MovieClip grid and text

Hi

I am creating a grid of MovieClips through loop [ rows and cols vary as it is user input value ]

I want to enter Text along outer movie clips and text between spaces (outside)
as rows and cols are dynamically so there can be many rows and cols

Is that possible to add text like in the image at the time of grid creation ?