Get images randomly in flash through a XML file

Hello All,

I want to get some images randomly through a XML file for this type of work i have a folder called “images” in which i store some images and i create a xml file and the code is :

<gallery>

<image main=“images/pic2_1.jpg” />
<image main=“images/pic2_2.jpg” />
<image main=“images/pic2_3.jpg” />
<image main=“images/pic2_4.jpg” />
<image main=“images/pic2_5.jpg” />
<image main=“images/pic2_6.jpg” />
<image main=“images/pic2_7.jpg” />
<image main=“images/pic2_8.jpg” />
<image main=“images/pic2_9.jpg” />
<image main=“images/pic2_10.jpg” />

</gallery>

I want to get these images in my flash file randomly from my “images” folder
so that the client can add and remove photos as they require only by change the name of images in XML file .

Now i want the action script code for this type of work.

Is this possible? Any help on this issue would be greatly appreciated.