Modify gallery to load caption from xml

hi folks
I wana ask someone, how modify gallery from this tutorial http://www.kirupa.com/developer/mx/photogallery.htm to load caption from xml, i try by myself, but i’m not very good in AS, so if someone can show me, how to do it, i will be realy happy
thanx or help
Ralf