Simple problem with movie resize

Hi everyone,
I’m confused on how to do the following (ive made a flash animation depicting what I wanna do):

But I dunno what I would need to do… I want to make this part of a website function so that when a user resizes the window, a specified grid with thumbnails will adjust accordingly to the screen or the window size.

Thanks in advance!