# Get images randomly in flash through a XML file

**URL:** <https://forum.kirupa.com/t/get-images-randomly-in-flash-through-a-xml-file/229816>\
**Category:** Uncategorized\
**Created:** [June 20, 2007, 12:51pm UTC](https://forum.kirupa.com/t/get-images-randomly-in-flash-through-a-xml-file/229816 "2007-06-20T12:51:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamna](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jamna](https://forum.kirupa.com/u/jamna)\
**Post date:** [June 20, 2007, 12:51pm UTC](https://forum.kirupa.com/t/get-images-randomly-in-flash-through-a-xml-file/229816/1 "2007-06-20T12:51:44Z")

</div>

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.
