Automatic fading out image gallery after 5 seconds using xml

I liked the script a lot. But I want to ask one thing , If I have to do a flash image gallery which should load the Images in a loop via XML into flash automatically and fade out gradually to another image after a certain predetermined time out say 5 seconds, what should I do?
Must be easy for the experts.