Flash & XML Photo Gallery with Categories, Thumbnails and Descriptions in as3

hi
i want create XML Photo Gallery with Categories in as3 on button click ?
how to create please help me?