Randomly loading photos using XML

Hi there,

I went through two tutorials for web photos here on kirupa which have been great, the one about using xml to load photos into a mc with arrow keys to cycle through the images and another tutorial that loads swf files randomly into a mc so that images load randomly either each time the page is refreshed or the user clicks a button.

What I am trying to figure out is how to combine these two concepts.

What I want is to have a randomly loading photo gallery using xml in Flash that cycles through the photos on its own, without user input, say ever 10 seconds or so.

If there is anyone that could give me some help that would be great!