Dynamic image viewer made in flash

I want to make an image viewer using flash…I should select a source folder and the preview of the images in that particular folder should be viewed in one portion of the image viewer… and if I select the preview of any particular image, it will be shown in the right side in some predefined size…
is it possible to make such an image viewer using Flash?